-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompile_code.m
More file actions
34 lines (28 loc) · 1.65 KB
/
compile_code.m
File metadata and controls
34 lines (28 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
clear
clc
app_name = 'SpikerBot';
main_app_file = 'C:\Users\chris\NeuroRobot\NeuroRobotToolbox\neurorobot.m';
additional_files = 'C:\Users\chris\NeuroRobot\NeuroRobotToolbox';
compiler_opts = compiler.build.StandaloneApplicationOptions(main_app_file, ...
'AdditionalFiles', additional_files, ...
'ExecutableName', app_name, ...
'Verbose', 'on', ...
'ExecutableIcon', 'C:\Users\chris\NeuroRobot\Gallery\robot.jpg', ...
'ExecutableSplashScreen', 'C:\Users\chris\NeuroRobot\Gallery\robot.jpg', ...
'OutputDir', 'C:\Users\chris\NeuroRobot\SpikerBot_Build', ...
'SupportPackages', 'autodetect');
compiler_results = compiler.build.standaloneApplication(compiler_opts);
package_opts = compiler.package.InstallerOptions(...
'ApplicationName', app_name, ...
'AuthorCompany', 'Backyard Brains', ...
'AuthorName', 'Christopher Harris', ...
'InstallerName', strcat(app_name, '_7.0_Installer'), ...
'InstallerSplash', 'C:\Users\chris\NeuroRobot\Gallery\robot.jpg', ...
'InstallerIcon', 'C:\Users\chris\NeuroRobot\Gallery\robot.jpg', ...
'InstallerLogo', 'C:\Users\chris\NeuroRobot\Gallery\strip.jpg', ...
'OutputDir', 'C:\Users\chris\NeuroRobot\SpikerBot_Installer', ...
'Summary','The SpikerBot app is a brain simulator for educational neurorobotics developed by Backyard Brains. For information visit https://GitHub.com/BackyardBrains/NeuroRobot', ...
'Description', 'You are about to download and install the SpikerBot app and Matlab Runtime Library. An internet connection is required.', ...
'Version', '7.0', ...
'RuntimeDelivery', 'web');
compiler.package.installer(compiler_results, 'options', package_opts);