Update buildnw.yml

This commit is contained in:
Lennon McLean 2021-08-15 11:08:03 -04:00 committed by GitHub
parent 4596c9cb8f
commit 54bfb48caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 1 deletions

View File

@ -32,5 +32,21 @@ jobs:
- name: Rename and move NW.js directories
run: mv nwjs-v0.55.0-linux-x64 build/KitsuneOffline-linux && mv nwjs-v0.55.0-win-x64 build/KitsuneOffline-win
- name: list files to make sure we are on the right track
- name: List files to make sure we are on the right track, which we should be!
run: echo "Build directory:" && ls -A build && echo "Repository:" && ls -A
- name: Create package.nw directories
run: mkdir build/KitsuneOffline-linux/package.nw && mkdir build/KitsuneOffline-win/package.nw
- name: Copy code to NW.js directories
run: cp -r logos build/KitsuneOffline-linux/package.nw && cp package.json build/KitsuneOffline-linux/package.nw && cp -r logos build/KitsuneOffline-win/package.nw && cp package.json build/KitsuneOffline-win/package.nw
- name: create Windows archive
run: cd build && zip -r KitsuneOffline-win.zip KitsuneOffline-win
- name: create Linux archive
run: cd build && tar -czvf KitsuneOffline-linux.tar.gz KitsuneOffline-linux
- name: list files again
run: echo "Build directory:" && ls -A build && echo "Repository:" && ls -A