Skip to content

Commit

Permalink
package: Win32 copy version info (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokurin000 authored Jan 11, 2024
1 parent 1711e5f commit 6f96233
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/win-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
python -m pip install --upgrade pip
pip install pyqt5
pip install pyinstaller
pip install pyinstaller-versionfile
pip install -e .[win32,battery]
- name: Download mpv-1.dll
run: |
Expand Down
9 changes: 9 additions & 0 deletions .metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CompanyName: FeelUOwn
FileDescription: FeelUOwn
InternalName: FeelUOwn
LegalCopyright: © FeelUOwn. All rights reserved.
OriginalFilename: FeelUOwn.exe
ProductName: FeelUOwn
Translation:
- langID: 2052
charsetID: 1200
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,16 @@ integration_test:
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
Expand Down

0 comments on commit 6f96233

Please sign in to comment.