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

14
package-lock.json generated
View File

@@ -5956,6 +5956,12 @@
"event-emitter": "~0.3.5"
}
},
"es6-promise": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz",
"integrity": "sha1-oIzd6EzNvzTQJ6FFG8kdS80ophM=",
"dev": true
},
"es6-set": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz",
@@ -12525,14 +12531,6 @@
"dev": true,
"requires": {
"es6-promise": "^3.0.2"
},
"dependencies": {
"es6-promise": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz",
"integrity": "sha1-oIzd6EzNvzTQJ6FFG8kdS80ophM=",
"dev": true
}
}
},
"subscriptions-transport-ws": {

View File

@@ -268,4 +268,4 @@
"uuid-apikey",
"xhr2"
]
}
}