-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated deploy script to create installer when MATLAB version new enough
Removed accidental addition of compiled file
- Loading branch information
Showing
9 changed files
with
62 additions
and
276 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
160 changes: 0 additions & 160 deletions
160
deploy/SpectralAnalysis_Linux_StandaloneWithInstaller.prj
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,53 @@ | |
cd([srcPath filesep 'processing' filesep 'postprocessing' filesep 'mepca']) | ||
compileMEPCA | ||
|
||
cd(path) | ||
cd(curDir) | ||
|
||
mcc -v -m SpectralAnalysis.m -a lib/ -a src/ -a *.m -a *.mex* -a version.txt | ||
if ispc | ||
wOption = "'WinMain:SpectralAnalysis,version=1.4'"; | ||
osText = 'win'; | ||
end | ||
|
||
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')% | ||
|
||
eval(mccCommand); | ||
|
||
if ispc | ||
defaultInstallDir = 'C:\Program Files\SpectralAnalysis'; | ||
elseif isunix | ||
defaultInstallDir = '/usr/local/SpectralAnalysis'; | ||
end | ||
|
||
matlabVersion = version('-release'); | ||
matlabYear = str2num(matlabVersion(1:end-1)); | ||
|
||
if matlabYear >= 2020 | ||
installerOpts = compiler.package.InstallerOptions('ApplicationName', 'SpectralAnalysis',... | ||
'Version', saversion(false), ... | ||
'AuthorCompany', 'Alan Race',... | ||
'AuthorName', 'Alan Race',... | ||
'AuthorEmail', '[email protected]',... | ||
'InstallerName', 'SpectralAnalysis_Installer',... | ||
'InstallerIcon', [deployFolder filesep 'SpectralAnalysis_resources' filesep 'icon_48.png'], ... | ||
'InstallerLogo', [deployFolder filesep 'SpectralAnalysis_resources' filesep 'installerLogo.png'], ... | ||
'InstallerSplash', [deployFolder filesep 'SpectralAnalysis_resources' filesep 'installerSplash.png'], ... | ||
'OutputDir', deployFolder, ... | ||
'DefaultInstallationDir', defaultInstallDir, ... | ||
'Summary', 'Software for the analysis and interactive exploration of spectral imaging data.', ... | ||
'Description', 'Software for the analysis and interactive exploration of spectral imaging data (such as mass spectrometry imaging and Raman spectroscopy mapping), including visualisation of both images and spectra, preprocessing, multivariate analysis and machine learning.'); | ||
|
||
compiler.package.installer([deployFolder filesep 'SpectralAnalysis.exe'], [deployFolder filesep 'requiredMCRProducts.txt'], 'Options', installerOpts); | ||
end | ||
|
||
|
||
if ispc | ||
movefile([deployFolder filesep 'SpectralAnalysis.exe'], [deployFolder filesep 'SpectralAnalysis-' saversion(false) '-' osText '.exe']); | ||
|
||
if matlabYear >= 2020 | ||
movefile([deployFolder filesep 'SpectralAnalysis_Installer.exe'], [deployFolder filesep 'SpectralAnalysis-' saversion(false) '-' osText '-installer-web.exe']); | ||
end | ||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.4.0-7457530 | ||
1.4.0-38ce932 |