Add windows source files to build (#166)

This commit is contained in:
Chidi Williams 2022-11-13 16:37:15 +00:00 committed by GitHub
commit 7956ce528d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -99,7 +99,7 @@ jobs:
if [ "$RUNNER_OS" == "macOS" ]; then
poetry run make bundle_mac
elif [ "$RUNNER_OS" == "Windows" ]; then
poetry run make dist/Buzz.exe
poetry run make dist/Buzz.exe dist/Buzz-windows.exe
elif [ "$RUNNER_OS" == "Linux" ]; then
poetry run make bundle_linux
fi

View file

@ -1,5 +1,4 @@
version := $$(poetry version -s)
version_escaped := $$(echo ${version} | sed -e 's/\./\\./g')
mac_app_path := ./dist/Buzz.app
mac_zip_path := ./dist/Buzz-${version}-mac.zip
@ -15,10 +14,13 @@ bundle_linux: dist/Buzz
dist/Buzz.exe: dist/Buzz
iscc //DAppVersion=${version} installer.iss
bundle_mac: dist/Buzz
dist/Buzz-windows.exe: dist/Buzz
cd dist && tar -czf ${windows_zip_path} Buzz/ && cd -
bundle_mac: dist/Buzz.app
make zip_mac
bundle_mac_local: dist/Buzz
bundle_mac_local: dist/Buzz.app
make codesign_all_mac
make zip_mac
make notarize_zip
@ -46,13 +48,12 @@ clean:
test: whisper_cpp.py
pytest --cov
dist/Buzz: whisper_cpp.py
dist/Buzz dist/Buzz.app: whisper_cpp.py
pyinstaller --noconfirm Buzz.spec
version:
poetry version ${version}
echo "VERSION = \"${version}\"" > __version__.py
sed -i "s/version=.*,/version=\'${version_escaped}\',/" Buzz.spec
CMAKE_FLAGS=
ifeq ($(UNAME_S),Darwin)