Skip to content

Commit 5453fa1

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

File tree

1,557 files changed

+35949
-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.

1,557 files changed

+35949
-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

media/LED-.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED-.png

File renamed without changes.

media/LED.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED.png

File renamed without changes.

media/LED0.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED0.png

File renamed without changes.

media/LED1.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED1.png

File renamed without changes.

media/LED2.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED2.png

File renamed without changes.

media/LED3.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED3.png

File renamed without changes.

media/LED4.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED4.png

File renamed without changes.

media/LED5.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED5.png

File renamed without changes.

media/LED6.png renamed to dist_history/Metaminesweeper-v3.1.10/media/LED6.png

File renamed without changes.

0 commit comments

Comments
 (0)