Skip to content

Commit 25c0437

Browse files
Prune windows download
1 parent 5fd091a commit 25c0437

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build-and-release.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ jobs:
4242
run: cp -rv OATFWGUI/ dist/
4343
- name: Copy bootstrap script into dist
4444
run: cp -v scripts/OATFWGUI_Windows.bat dist/
45+
- name: Prune unused windows files
46+
run: |
47+
rm -v ./dist/.python_local/Lib/site-packages/PySide6/lupdate.exe || true
48+
rm -v ./dist/.python_local/Lib/site-packages/PySide6/Qt*Designer* || true
49+
rm -v ./dist/.python_local/Lib/site-packages/PySide6/Qt*Quick* || true
50+
rm -v ./dist/.python_local/Lib/site-packages/PySide6/Qt*Qml* || true
51+
rm -v ./dist/.python_local/Lib/site-packages/PySide6/Qt*Sql* || true
52+
rm -v ./dist/.python_local/Lib/site-packages/PySide6/Qt*Xml* || true
53+
rm -v ./dist/.python_local/Lib/site-packages/PySide6/linguist.exe || true
54+
rm -v ./dist/.python_local/Lib/site-packages/PySide6/designer.exe || true
4555
4656
- name: Smoke test
4757
run: ./dist/OATFWGUI_Windows.bat --no-gui
@@ -50,6 +60,8 @@ jobs:
5060
id: version
5161
run: echo "::set-output name=VERSION::$(./dist/OATFWGUI_Windows.bat --version | tail -1)"
5262

63+
- name: Remove local .platformio
64+
run: rm -r ./dist/.platformio
5365
# Work around stupid issue that GHA can't store file permissions on artifacts
5466
- name: Store which files are executable
5567
run: pushd dist/ && find . -type f -executable -print > restore_executable_permissions.txt && popd
@@ -90,6 +102,8 @@ jobs:
90102
id: version
91103
run: echo "::set-output name=VERSION::$(./dist/OATFWGUI_Linux.sh --version | tail -1)"
92104

105+
- name: Remove local .platformio
106+
run: rm -r ./dist/.platformio
93107
# Work around stupid issue that GHA can't store file permissions on artifacts
94108
- name: Store which files are executable
95109
run: pushd dist/ && find . -type f -executable -print > restore_executable_permissions.txt && popd

0 commit comments

Comments
 (0)