-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPatientSelectionToolDeployMac.m
More file actions
35 lines (32 loc) · 3.51 KB
/
Copy pathPatientSelectionToolDeployMac.m
File metadata and controls
35 lines (32 loc) · 3.51 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
35
% Write flag to indicate to matlab which mode this is.
mode = "selection";
fid = fopen("mode.txt","w");
fprintf(fid, mode);
fclose(fid);
% Load version.
version = strtrim(fileread('version.txt'));
% Create target build options object, set build properties and build.
buildOpts = compiler.build.StandaloneApplicationOptions("ContourAlignmentTool.mlapp");
buildOpts.AdditionalFiles = ["ContourAlignmentTool_resources/ROI.png", "ContourAlignmentTool_resources/The-X-small.png", "ContourAlignmentTool_resources/The-X.png", "ContourAlignmentTool_resources/selection-about.png", "ContourAlignmentTool_resources/auto.png", "ContourAlignmentTool_resources/contour.png", "ContourAlignmentTool_resources/east.png", "ContourAlignmentTool_resources/first.png", "ContourAlignmentTool_resources/icon.ico", "ContourAlignmentTool_resources/icon_16.png", "ContourAlignmentTool_resources/icon_24.png", "ContourAlignmentTool_resources/icon_32.png", "ContourAlignmentTool_resources/icon_48.png", "ContourAlignmentTool_resources/instruction-PatientPlanLoad.png", "ContourAlignmentTool_resources/instructions-alignment.png", "ContourAlignmentTool_resources/instructions-display.png", "ContourAlignmentTool_resources/instructions-issue.png", "ContourAlignmentTool_resources/instructions-loading.png", "ContourAlignmentTool_resources/instructions-saving.png", "ContourAlignmentTool_resources/last.png", "ContourAlignmentTool_resources/manual.png", "ContourAlignmentTool_resources/mhaHeaderTemplate.mat", "ContourAlignmentTool_resources/next.png", "ContourAlignmentTool_resources/north.png", "ContourAlignmentTool_resources/northeast.png", "ContourAlignmentTool_resources/northwest.png", "ContourAlignmentTool_resources/previous.png", "ContourAlignmentTool_resources/reset.png", "ContourAlignmentTool_resources/directories.png", "ContourAlignmentTool_resources/south.png", "ContourAlignmentTool_resources/southeast.png", "ContourAlignmentTool_resources/southwest.png", "ContourAlignmentTool_resources/selection-splash.png", "ContourAlignmentTool_resources/west.png", "Dependencies/forwardprojectionsMac", "Dependencies/geometryMac", "Dependencies/VarianReader.jar", "mode.txt", "Supporting Apps/AboutSoftware.mlapp", "Supporting Apps/CheckForUpdates.mlapp", "Supporting Apps/DRRviewer.mlapp", "Supporting Apps/Manual.mlapp", "version.txt"];
buildOpts.AutoDetectDataFiles = true;
buildOpts.OutputDir = "Deploy/PatientSelectionTool/for_testing";
buildOpts.Verbose = true;
buildOpts.EmbedArchive = true;
buildOpts.ExecutableIcon = "ContourAlignmentTool_resources/icon_48.png";
buildOpts.ExecutableName = "PatientSelectionTool";
buildOpts.ExecutableSplashScreen = "ContourAlignmentTool_resources/selection-splash.png";
buildOpts.ExecutableVersion = version;
buildOpts.TreatInputsAsNumeric = false;
buildResult = compiler.build.standaloneApplication(buildOpts);
% Create package options object, set package properties and package.
packageOpts = compiler.package.InstallerOptions(buildResult);
packageOpts.ApplicationName = "PatientSelectionTool";
packageOpts.DefaultInstallationDir = "/Applications/PatientSelectionTool/";
packageOpts.InstallerIcon = "ContourAlignmentTool_resources/icon_48.png";
packageOpts.InstallerName = ['PatientSelectionToolInstaller.v', version];
packageOpts.InstallerSplash = "ContourAlignmentTool_resources/selection-splash.png";
packageOpts.OutputDir = "Deploy/PatientSelectionTool/for_redistribution";
packageOpts.Summary = "Patient selection tool for motion tracking";
packageOpts.Verbose = true;
packageOpts.Version = version;
compiler.package.installer(buildResult, "Options", packageOpts);