From 35309ee2d185b9f3af828194b02f4bc3d98706d8 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Sat, 9 Mar 2024 11:14:43 -0500 Subject: [PATCH] Add gui.yml --- .github/gui.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/gui.yml diff --git a/.github/gui.yml b/.github/gui.yml new file mode 100644 index 0000000..479fe56 --- /dev/null +++ b/.github/gui.yml @@ -0,0 +1,47 @@ +name: GUI Build and Package + +on: [push, pull_request] + +jobs: + build-and-package: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies (GUI) + run: cd gui && npm install + + - name: Build for Linux + run: cd gui && npm run dist-linux + + - name: Build for Windows + run: cd gui && npm run dist-win + + - name: Package linux-unpacked + run: | + cd gui/dist/linux-unpacked + tar -cvJf linux-unpacked.tar.xz * + mv linux-unpacked.tar.xz ../ + + - name: Package win-unpacked + run: | + cd gui/dist/win-unpacked + zip -r win-unpacked.zip * + mv win-unpacked.zip ../ + + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: packaged-apps + path: | + gui/dist/*.AppImage + gui/dist/*.exe + gui/dist/*.deb + gui/dist/linux-unpacked.tar.xz + gui/dist/win-unpacked.zip