Skip to content

Commit 5f0cbbc

Browse files
committed
Update build scripts to use 'DataLab' as the project name in image generation and installer creation
1 parent 88c33a6 commit 5f0cbbc

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

scripts/build_exe.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,28 @@ pushd %CLONEDIR%
2727
set INKSCAPE_PATH="C:\Program Files\Inkscape\bin\inkscape.exe"
2828
set RESPATH=%CLONEDIR%\resources
2929
for %%s in (16 24 32 48 128 256) do (
30-
%INKSCAPE_PATH% "%RESPATH%\%LIBNAME%.svg" -o "%RESPATH%\tmp-%%s.png" -w %%s -h %%s
30+
%INKSCAPE_PATH% "%RESPATH%\DataLab.svg" -o "%RESPATH%\tmp-%%s.png" -w %%s -h %%s
3131
)
32-
magick "%RESPATH%\tmp-*.png" "%RESPATH%\%LIBNAME%.ico"
32+
magick "%RESPATH%\tmp-*.png" "%RESPATH%\DataLab.ico"
3333
del "%RESPATH%\tmp-*.png"
3434

3535
@REM Building executable
36-
pyinstaller %LIBNAME%.spec --noconfirm --clean
36+
pyinstaller DataLab.spec --noconfirm --clean
3737

3838
@REM Windows 7 SP1 compatibility fix
39-
copy "%RESPATH%\api-ms-win-core-path-l1-1-0.dll" "dist\%LIBNAME%\_internal" /Y
39+
copy "%RESPATH%\api-ms-win-core-path-l1-1-0.dll" "dist\DataLab\_internal" /Y
4040

4141
@REM Zipping executable
4242
cd dist
43-
set ZIPNAME=%LIBNAME%-v%VERSION%_exe.zip
44-
"C:\Program Files\7-Zip\7z.exe" a -mx1 "%ZIPNAME%" %LIBNAME%
43+
set ZIPNAME=DataLab-v%VERSION%_exe.zip
44+
"C:\Program Files\7-Zip\7z.exe" a -mx1 "%ZIPNAME%" DataLab
4545
popd
4646

4747
if not exist %REPODIR%\dist ( mkdir %REPODIR%\dist )
4848
@REM Move zipped executable to dist directory
4949
move %CLONEDIR%\dist\%ZIPNAME% %REPODIR%\dist
5050
@REM Move generated folder to dist directory
51-
move %CLONEDIR%\dist\%LIBNAME% %REPODIR%\dist
51+
move %CLONEDIR%\dist\DataLab %REPODIR%\dist
5252

5353
rmdir /s /q %CLONEDIR%
5454
call %FUNC% EndOfScript

scripts/build_installer.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ magick "temp.png" bmp3:"%WIXPATH%\banner.bmp"
2424
del "temp.png"
2525

2626
echo Generating .wxs file for MSI installer...
27-
%PYTHON% "%WIXPATH%\makewxs.py" %LIBNAME% %VERSION%
27+
%PYTHON% "%WIXPATH%\makewxs.py" DataLab %VERSION%
2828

2929
echo Building MSI installer...
30-
wix build "%WIXPATH%\%LIBNAME%-%VERSION%.wxs" -ext WixToolset.UI.wixext
30+
wix build "%WIXPATH%\DataLab-%VERSION%.wxs" -ext WixToolset.UI.wixext
3131

3232
call %FUNC% EndOfScript

0 commit comments

Comments
 (0)