Skip to content

Commit

Permalink
fix(ci): install pyinstaller-versionfile (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokurin000 authored Jan 12, 2024
1 parent 6f96233 commit 6a8cf26
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,33 @@ test: lint unittest

BUNDLE_FLAGS=

target: ;

ifeq ($(OS),Windows_NT)
BUNDLE_FLAGS += --name FeelUOwn
BUNDLE_FLAGS += --icon feeluown/gui/assets/icons/feeluown.ico
BUNDLE_FLAGS += --version-file version_file.txt
target:
create-version-file .metadata.yml --version \
$(shell python -c 'print(__import__("feeluown").__version__, end="")' | tr -c '[:digit:]' '.')
else
# macOS: since apfs is not case-sensitive, we use FeelUOwnX instead of FeelUOwn
BUNDLE_FLAGS += --name FeelUOwnX --osx-bundle-identifier org.feeluown.FeelUOwnX
BUNDLE_FLAGS += --icon feeluown/gui/assets/icons/feeluown.icns
endif

# Please install pyinstaller manually.

ifeq ($(OS),Windows_NT)
bundle:
create-version-file .metadata.yml --version \
$(shell python -c 'print(__import__("feeluown").__version__, end="")' | tr -c '[:digit:]' '.')
pyinstaller -w feeluown/pyinstaller/main.py \
${BUNDLE_FLAGS} \
-w \
--noconfirm
else
bundle:
pyinstaller -w feeluown/pyinstaller/main.py \
${BUNDLE_FLAGS} \
-w \
--noconfirm
endif

clean: clean_py clean_emacs

Expand Down

0 comments on commit 6a8cf26

Please sign in to comment.