diff --git a/.gitignore b/.gitignore index 55e4e89..c77c993 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ MFTyreToolApp_resources/ sandbox/ *.asv +*.mltbx +*.mlappinstall \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d0fd036..0402b51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ # Changelog -- Updated MFTyreLibrary submodule which fixed minor issue with Fitter +- No functional changes, just installation changes +- Tool is now distributed as app contained in toolbox, because FileExchange + and GitHub Releases only integrate well with toolboxes. diff --git a/MFTyreToolApp.mlappinstall b/MFTyreToolApp.mlappinstall deleted file mode 100644 index 9e1e69c..0000000 Binary files a/MFTyreToolApp.mlappinstall and /dev/null differ diff --git a/MFTyreToolApp.prj b/MFTyreToolApp.prj index 6bbae20..7162c4e 100644 --- a/MFTyreToolApp.prj +++ b/MFTyreToolApp.prj @@ -1,5 +1,5 @@ - + MFTyreToolApp Tom Teasdale teasdale@lightsaber.red @@ -13,7 +13,7 @@ Create, fit and evaluate MF-Tyre model with a convenient MATLAB GUI. ${PROJECT_ROOT}\doc\img\MFTyreTool_Screenshot_Plot.png - 1.0.0 + 1.0.3 MATLAB diff --git a/MFTyreToolToolboxPackager.prj b/MFTyreToolToolboxPackager.prj new file mode 100644 index 0000000..9b26fe9 --- /dev/null +++ b/MFTyreToolToolboxPackager.prj @@ -0,0 +1,151 @@ + + + MFTyreTool + Tom Teasdale + teasdale@lightsaber.red + + Create, fit and evaluate MF-Tyre models with a convenient MATLAB GUI. + + ${PROJECT_ROOT}\doc\img\MFTyreTool_Screenshot_Plot.png + 1.0.3 + ${PROJECT_ROOT}\MFTyreTool.mltbx + + + + + e03fa972-2c80-4cb3-a454-b337725c641c + % List files contained in your toolbox folder that you would like to exclude +% from packaging. Excludes should be listed relative to the toolbox folder. +% Some examples of how to specify excludes are provided below: +% +% A single file in the toolbox folder: +% .svn +% +% A single file in a subfolder of the toolbox folder: +% example/.svn +% +% All files in a subfolder of the toolbox folder: +% example/* +% +% All files of a certain name in all subfolders of the toolbox folder: +% **/.svn +% +% All files matching a pattern in all subfolders of the toolbox folder: +% **/*.bak +% + +.gitmodules +.gitignore +.git +sandbox ++tests +tools +resources +MFTyreToolApp_resources + true + + + + ${PROJECT_ROOT}\MFTyreToolApp.mlappinstall + + + + + + + false + + + + R2021a + latest + false + true + true + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${PROJECT_ROOT} + + + ${PROJECT_ROOT}\CHANGELOG.md + ${PROJECT_ROOT}\doc + ${PROJECT_ROOT}\LICENSE + ${PROJECT_ROOT}\MFTyreToolApp.mlappinstall + ${PROJECT_ROOT}\README.md + ${PROJECT_ROOT}\src + + + + + + C:\Users\Tom\Documents\mftyre-tool-matlab\MFTyreTool.mltbx + + + + C:\Program Files\MATLAB\R2021a + + + + + + true + + + + + false + false + true + false + false + false + false + false + 10.0 + false + true + win64 + true + + + \ No newline at end of file diff --git a/src/about.json b/src/about.json index 02081cc..2828d88 100644 --- a/src/about.json +++ b/src/about.json @@ -1,6 +1,6 @@ { "Name": "MFTyreTool", - "Version": "1.0.3", + "Version": "1.0.4", "Authors": [ "Tom Teasdale" ], diff --git a/tools/publishReleaseMFTyreTool.m b/tools/publishReleaseMFTyreTool.m index 8c0e541..b73a457 100644 --- a/tools/publishReleaseMFTyreTool.m +++ b/tools/publishReleaseMFTyreTool.m @@ -1,11 +1,12 @@ -function publishReleaseMFTyreTool(version, title, changelogFile, packageFile, packagerFile) +function publishReleaseMFTyreTool(version, title, changelogFile, packageFile, packagerFile, packagerToolboxFile) %PUBLISHRELEASEMFTYRETOOL Automatic release to GitHub arguments - version char = getVersionFromAboutJSON + version char = getVersionFromAboutJSON() title char = char.empty changelogFile char {mustBeFile} = 'CHANGELOG.md' - packageFile char = 'MFTyreToolApp.mlappinstall' + packageFile char = 'MFTyreTool.mltbx' packagerFile char = 'MFTyreToolApp.prj' + packagerToolboxFile char = 'MFTyreToolToolboxPackager.prj' end pattern = 'v' + digitsPattern() + '.' + digitsPattern() + '.' + digitsPattern(); versionInvalid = ~matches(version, pattern); @@ -13,14 +14,19 @@ function publishReleaseMFTyreTool(version, title, changelogFile, packageFile, pa error('Invalid version pattern. Example: v1.0.1') end -%Not needed, as version is synced with latest GitHub release -% updateVersionPackager(packagerFile, version) +updateVersionPackager(packagerFile, version) matlab.apputil.package(packagerFile) +matlab.addons.toolbox.toolboxVersion(packagerToolboxFile, erase(version, 'v')); +matlab.addons.toolbox.packageToolbox(packagerToolboxFile); if isempty(title) title = version; end +system('git add *') +system(sprintf('git commit -m "publish release %s"', version)) +system('git push') + cmd = "gh release create %s --title %s --notes-file %s"; cmd = sprintf(cmd, version, title, changelogFile); [status, cmdout] = system(cmd); @@ -34,7 +40,7 @@ function publishReleaseMFTyreTool(version, title, changelogFile, packageFile, pa cmd = sprintf(cmd, version, packageFile); [status, cmdout] = system(cmd); if status == 1 - warning('Failed to upload packaged application. Command-Line output:') + warning('Failed to upload packaged toolbox. Command-Line output:') disp(cmdout) return end