KitsuneOffline/.github/workflows/buildnw.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2021-08-15 14:31:20 +00:00
name: Build NW.js apps
2021-08-15 14:26:47 +00:00
on:
[push, workflow_dispatch]
jobs:
build:
2021-08-15 14:31:20 +00:00
name: Build NW.js apps
2021-08-15 14:26:47 +00:00
runs-on: ubuntu-latest
steps:
- name: Get repository code
uses: actions/checkout@v2
2021-08-15 14:45:14 +00:00
- name: Create build directory
run: mkdir build
2021-08-15 14:39:35 +00:00
2021-08-15 14:31:20 +00:00
- name: Download Windows NW.js
2021-08-15 14:26:47 +00:00
run: wget https://dl.nwjs.io/v0.55.0/nwjs-v0.55.0-win-x64.zip
2021-08-15 14:31:20 +00:00
- name: Extract Windows NW.js
2021-08-15 14:26:47 +00:00
run: unzip nwjs-v0.55.0-win-x64.zip
2021-08-15 14:31:20 +00:00
- name: Download Linux NW.js
2021-08-15 14:26:47 +00:00
run: wget https://dl.nwjs.io/v0.55.0/nwjs-v0.55.0-linux-x64.tar.gz
2021-08-15 14:31:20 +00:00
- name: Extract Linux NW.js
2021-08-15 14:33:39 +00:00
run: tar -xvf nwjs-v0.55.0-linux-x64.tar.gz
2021-08-15 14:31:20 +00:00
2021-08-15 14:39:35 +00:00
- name: Delete archives
run: rm nwjs-v0.55.0-linux-x64.tar.gz nwjs-v0.55.0-win-x64.zip
2021-08-15 14:45:14 +00:00
- 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
2021-08-15 14:39:35 +00:00
- name: list files to make sure we are on the right track
2021-08-15 14:45:14 +00:00
run: echo "Build directory:" && ls -A build && echo "Repository:" && ls -A