Skip to content

Commit

Permalink
Fixed deploy script for local directories
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRace committed Aug 11, 2020
1 parent 28997b7 commit 92fae3d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions deploy/deploy.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
cd([srcPath filesep 'processing' filesep 'postprocessing' filesep 'mepca'])
compileMEPCA

cd(curDir)

if ispc
wOption = "'WinMain:SpectralAnalysis,version=1.4'";
osText = 'win';
Expand All @@ -33,10 +31,13 @@
saFolder = [getSpectralAnalysisFolder() filesep];
deployFolder = [saFolder filesep 'deploy'];

mccCommand = "mcc -o SpectralAnalysis -W %s -T link:exe -v %sSpectralAnalysis.m -d %s -a %sfiles -a %slib -a %ssrc -a %sversion.txt -r '%s'";
mccCommand = sprintf(mccCommand, wOption, saFolder, deployFolder, saFolder, saFolder, saFolder, saFolder, [saFolder 'files' filesep 'SA_icon_256.ico']) %'C:\Program Files\MATLAB\R2020a\toolbox\compiler\resources\default_icon.ico')%

mccCommand = "mcc -o SpectralAnalysis -W %s -T link:exe -v SpectralAnalysis.m -d %s -a files -a lib -a src -a version.txt -r '%s'";
mccCommand = sprintf(mccCommand, wOption, deployFolder, [saFolder 'files' filesep 'SA_icon_256.ico']) %'C:\Program Files\MATLAB\R2020a\toolbox\compiler\resources\default_icon.ico')%

cd(saFolder);
eval(mccCommand);
cd(curDir);

matlabVersion = version('-release');
matlabYear = str2num(matlabVersion(1:end-1));
Expand Down

0 comments on commit 92fae3d

Please sign in to comment.