Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
updated build scripts for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
maybites committed Mar 18, 2020
1 parent 52face9 commit 0baa3f3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ c_externals/sysbuild/
*.db
exporting/WIN/
build/WIN/build
build/WIN/step_02_maxScriptForExport.txt
15 changes: 12 additions & 3 deletions build/WIN/step_01_buildMaxExportScript.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
@Echo OFF

REM Copy JRE folder to SPARCK app
REM xcopy /s %~dp0\..\Bundle\maxScriptForExport.txt %~dp0\step_02_maxScriptForExport.txt
setlocal
for %%B in (%~dp0\.) do set parent=%%~dpB
ECHO parent=%parent%
FOR %%a IN ("%parent:~0,-1%") DO SET grandparent=%%~dpa
ECHO grandparent=%grandparent%

powershell -Command "(gc %~dp0\..\Bundle\maxScriptForExport.txt) -replace '<replacePath>', %~dp0\..\ | Out-File -encoding ASCII %~dp0\step_02_maxScriptForExport.txt"
powershell -Command "(gc %~dp0\..\Bundle\maxScriptForExport.txt) -replace '<replacePath>', '%grandparent%' | Out-File -encoding ASCII %~dp0\step_02_maxScriptForExport.txt"

powershell -Command "(gc %~dp0\step_02_maxScriptForExport.txt) -replace '\\', '/' | Out-File -encoding ASCII %~dp0\step_02_maxScriptForExport.txt"

powershell -Command "(gc %~dp0\step_02_maxScriptForExport.txt) -replace 'SPARCK.icns', 'SPARCK.ico' | Out-File -encoding ASCII %~dp0\step_02_maxScriptForExport.txt"

powershell -Command "(gc %~dp0\step_02_maxScriptForExport.txt) -replace '_onlyOSX', '_onlyWIN' | Out-File -encoding ASCII %~dp0\step_02_maxScriptForExport.txt"

REM Exit
8 changes: 4 additions & 4 deletions build/WIN/step_03_buildFinalize.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ xcopy /s "C:\Program Files\Java\jdk-13.0.2" %~dp0\build\SPARCK\jre
rmdir /s /q %~dp0\build\SPARCK\jre\jmods
rmdir /s /q %~dp0\build\SPARCK\jre\include
rmdir /s /q %~dp0\build\SPARCK\jre\legal
del /s /q /f /a:h %~dp0\build\SPARCK\jre\lib\ct.sym
del /s /q /f /a:h %~dp0\build\SPARCK\jre\lib\src.zip
except java.* del %~dp0\build\SPARCK\jre\bin /Q
del %~dp0\build\SPARCK\jre\lib\ct.sym
del %~dp0\build\SPARCK\jre\lib\src.zip

REM Remove unused files...
rmdir /s /q %~dp0\build\SPARCK\resources\support\CEF
Expand All @@ -21,13 +20,14 @@ rmdir /s /q %~dp0\build\SPARCK\resources\packages\max-mxj\source
rmdir /s /q %~dp0\build\SPARCK\resources\packages\max-mxj\sysbuild
rmdir /s /q %~dp0\build\SPARCK\resources\packages\max-mxj\testing
rmdir /s /q %~dp0\build\SPARCK\resources\packages\max-mxj\.git
del /s /q /f /a:h %~dp0\build\SPARCK\resources\packages\max-mxj\.*
del %~dp0\build\SPARCK\resources\packages\max-mxj\*.*

REM Change menu...
xcopy %~dp0..\Bundle\maxinterface.json %~dp0\build\SPARCK\resources\interfaces\maxinterface.json

REM Add Java Lib...
xcopy %~dp0..\..\sparck\java-classes\lib %~dp0\build\SPARCK\resources\java-classes\lib
rmdir /s /q %~dp0\build\SPARCK\resources\java-classes\lib\opencv

REM Set Java Initialization...
xcopy %~dp0\Bundle\max.java.config.txt %~dp0\build\SPARCK\resources\java-classes
Expand Down
24 changes: 13 additions & 11 deletions build/WIN/step_06_buildSparckWin64bit.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "SPARCK"
#define MyAppVersion "0.5.0.1"
#define MyAppVersion "1.1.0.26"
#define MyAppPublisher "tecartlab"
#define MyAppCopyright "tecartlab.com"
#define MyAppURL "http://tecartlab.com/"
#define MyAppExeName "SPARCK.exe"
#define MyInstallerName "SPARCK_1.1.0_(b26)_WIN"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{0375D067-1B04-42C6-B5A6-7D123CB9C2D1}
AppId=54D810BB-010E-429D-9254-4166A6DE3388
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
Expand All @@ -22,23 +24,23 @@ AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
OutputBaseFilename=SparckInstaller
OutputBaseFilename={#MyInstallerName}
Compression=lzma
SolidCompression=yes
LicenseFile=C:\Users\maybites\Arbeiten\01_projekte\150816_SPARCK\01_dev\app_sparck\build\Bundle\EndUserLicenseAgreement.rtf
LicenseFile=..\Bundle\EndUserLicenseAgreement.rtf
ChangesAssociations=True
OutputDir=C:\Users\maybites\Arbeiten\01_projekte\150816_SPARCK\05_building\04_packing\WIN
VersionInfoCompany=tecartlab
VersionInfoCopyright=tecartlab.com
OutputDir=build
VersionInfoCompany={#MyAppPublisher}
VersionInfoCopyright={#MyAppCopyright}
VersionInfoProductName=Sparck
TerminalServicesAware=False
VersionInfoProductTextVersion=Beta 0.5.0.1
VersionInfoProductTextVersion={#MyAppVersion}
Uninstallable=yes
UninstallFilesDir={win}\Installer
VersionInfoVersion=0.5.0.1
VersionInfoProductVersion=0.5.0.1
VersionInfoVersion={#MyAppVersion}
VersionInfoProductVersion={#MyAppVersion}
ArchitecturesInstallIn64BitMode=x64
SetupIconFile=C:\Users\maybites\Arbeiten\01_projekte\150816_SPARCK\01_dev\app_sparck\build\Bundle\SPARCK.ico
SetupIconFile=..\Bundle\SPARCK.ico
UninstallDisplayName=SparckUninstaller

[Registry]
Expand Down

0 comments on commit 0baa3f3

Please sign in to comment.