Skip to content

Commit ac80f6b

Browse files
committed
refactor: 调整打包后的目录结构、文件权限问题
假如文件被安装到C:\Program Files这种,则设置、录像目录都移动到C:\Users\username\AppData\Roaming\MetaMineSweeper3.2.1下
1 parent b70fb2b commit ac80f6b

File tree

336 files changed

+39
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+39
-14
lines changed

.github/workflows/python-app.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ jobs:
8383
8484
- name: Package with PyInstaller
8585
run: |
86-
pyinstaller -i "./media/cat.ico" -w -y --clean --add-data "./media/*;./media" --add-data "./de_DE.qm;." --add-data "./pl_PL.qm;." --add-data "./en_US.qm;." -p src src/main.py -n metaminesweeper
86+
pyinstaller --icon "./src/media/cat.ico" --noconsole --noconfirm --clean --add-data "./src/media/*:./media" --add-data "./src/de_DE.qm:." --add-data "./src/pl_PL.qm:." --add-data "./src/en_US.qm:." --paths src --name metaminesweeper src/main.py
87+
88+
8789
8890
- name: Move media and qm file
8991
run: |
90-
move dist/metaminesweeper/media dist/media
91-
move dist/metaminesweeper/en_US.qm dist/en_US.qm
92-
move dist/metaminesweeper/de_DE.qm dist/de_DE.qm
93-
move dist/metaminesweeper/pl_PL.qm dist/pl_PL.qm
92+
move dist/metaminesweeper/_internal/media dist/media
93+
move dist/metaminesweeper/_internal/en_US.qm dist/metaminesweeper/en_US.qm
94+
move dist/metaminesweeper/_internal/de_DE.qm dist/metaminesweeper/de_DE.qm
95+
move dist/metaminesweeper/_internal/pl_PL.qm dist/metaminesweeper/pl_PL.qm
9496
9597
# upload the result package as an artifact
9698
- name: Upload artifacts

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pyQt5==5.15.7
22
ms-toollib==1.4.19
33
setuptools==70.2.0
4-
pyinstaller
4+
pyinstaller==6.16.0
55

66

77

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)