-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
piotrj
committed
Jan 29, 2024
1 parent
1acd82f
commit 8e2cdf2
Showing
4 changed files
with
209 additions
and
9 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ psutil==5.9.7 | |
pympler==1.0.1 | ||
ciso8601==2.3.1 | ||
pywin32==306; sys.platform == 'win32' | ||
|
||
nuitka==2.0 |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@cd "%~dp0.." | ||
@echo building with nuitka | ||
@cd src | ||
|
||
@set /p VERSION=<version.txt | ||
@SET VERSION=%VERSION:~1,10% | ||
@echo VERSION=%VERSION% | ||
|
||
@SET OUTDIR=..\build-nuitka | ||
|
||
@if exist %OUTDIR% rmdir /s /q %OUTDIR% | ||
@mkdir %OUTDIR% | ||
|
||
@echo. | ||
@echo running-nuitka | ||
@echo wd:%CD% | ||
|
||
@echo|set /p="Nuitka " > distro.info.txt | ||
python -m nuitka --version >> distro.info.txt | ||
|
||
@echo. | ||
@echo running-nuitka-stage_librer | ||
python -m nuitka --windows-icon-from-ico=./icon.ico --include-data-file=./distro.info.txt=./distro.info.txt --include-data-file=./version.txt=./version.txt --include-data-file=../LICENSE=./LICENSE --output-dir=%outdir% --standalone --lto=yes --follow-stdlib --assume-yes-for-downloads --product-version=%VERSION% --copyright="2023-2024 Piotr Jochymek" --file-description="Librer" --enable-plugin=tk-inter --windows-disable-console --output-filename=librer ./librer.py | ||
|
||
@echo. | ||
@echo running-nuitka-stage_record | ||
python -m nuitka --windows-icon-from-ico=./icon.ico --include-data-file=./distro.info.txt=./distro.info.txt --include-data-file=./version.txt=./version.txt --include-data-file=../LICENSE=./LICENSE --output-dir=%outdir% --standalone --lto=yes --follow-stdlib --assume-yes-for-downloads --product-version=%VERSION% --copyright="2023-2024 Piotr Jochymek" --file-description="Librer-record" ./record.py --output-filename=record | ||
|
||
move %OUTDIR%\record.dist\record.exe %OUTDIR%\librer.dist | ||
move %OUTDIR%\librer.dist %OUTDIR%\librer | ||
|
||
@echo. | ||
@echo packing | ||
powershell Compress-Archive %OUTDIR%\librer %OUTDIR%\librer.win.zip | ||
|
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
dir="$(readlink -m $(dirname "$0"))" | ||
cd $dir/../src | ||
|
||
VERSION=`cat ./version.txt` | ||
VERSION=${VERSION:1:10} | ||
echo VERSION=$VERSION | ||
|
||
outdir=../build-nuitka$venvname | ||
|
||
rm -rf $outdir | ||
mkdir $outdir | ||
|
||
echo '' | ||
echo running-nuitka | ||
echo wd:`pwd` | ||
|
||
echo -n "Nuitka: " > distro.info.txt | ||
python3 -m nuitka --version >> distro.info.txt | ||
|
||
echo '' | ||
echo running-nuitka-stage_librer | ||
python3 -m nuitka --include-data-file=./distro.info.txt=./distro.info.txt --include-data-file=./version.txt=./version.txt --include-data-file=../LICENSE=./LICENSE --enable-plugin=tk-inter --lto=yes --follow-stdlib --assume-yes-for-downloads --windows-disable-console --output-dir=$outdir --standalone ./librer.py --output-filename=librer | ||
|
||
echo '' | ||
echo running-nuitka-stage_record | ||
python3 -m nuitka --include-data-file=./distro.info.txt=./distro.info.txt --include-data-file=./version.txt=./version.txt --include-data-file=../LICENSE=./LICENSE --output-dir=$outdir --lto=yes --follow-stdlib --assume-yes-for-downloads --standalone ./record.py --output-filename=record | ||
|
||
mv -v $outdir/record.dist/record $outdir/librer.dist | ||
mv -v $outdir/librer.dist $outdir/librer | ||
|
||
echo '' | ||
echo packing | ||
cd $outdir | ||
zip -9 -r -m ./librer.lin.zip ./librer | ||
|