chore: add upx and modclean to github actions workflow

This commit is contained in:
Alexis
2021-09-29 15:38:11 +09:30
parent 5a46501334
commit 60b4665dcc
3 changed files with 14 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ jobs:
run: npm run build
- name: Clean node_modules
run: npm run clean && curl -sf https://gobinaries.com/tj/node-prune | sh && node-prune
run: npm run clean && curl -sf https://gobinaries.com/tj/node-prune | sh && node-prune && modclean -n default:safe
- name: Add commit hash to version
if: startsWith(github.ref, 'refs/tags/v') == false
@@ -180,6 +180,12 @@ jobs:
with:
name: unraid-api-source
- name: Install upx
run: sudo apt-get install upx
- name: Reduce node size
run: upx ~/.nexe/linux-x64-14.15.3
- name: Unpack unraid-api source tgz
shell: bash
run: tar xvzf ./unraid-api-*.tgz --strip 1 && rm ./unraid-api-*.tgz