Plugin install warning + fixed workflows?

This commit is contained in:
smartfridge 2021-06-30 15:40:19 +02:00
parent 0aa6e1399c
commit 847cb9c2c8
2 changed files with 34 additions and 35 deletions

View file

@ -1,39 +1,32 @@
name: Build name: Build/release
on: [push, pull_request]
on: push
jobs: jobs:
build_on_linux: release:
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 14
- name: install dependencies
run: npm install
- name: build
run: npm run make
build_on_mac: strategy:
runs-on: macos-latest matrix:
steps: os: [macos-latest, ubuntu-latest, windows-latest]
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 14
- name: install dependencies
run: npm install
- name: build
run: npm run make
build_on_win:
runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - name: Check out Git repository
- uses: actions/setup-node@master uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with: with:
node-version: 14 node-version: 16
- name: install dependencies
run: npm install - name: Build/release Electron app
- name: build uses: samuelmeuli/action-electron-builder@v1
run: npm run make with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# skip npm run build as there's no script like that
skip_build: true
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

View file

@ -34,7 +34,13 @@ if (!fs.existsSync(pluginFolder)) {
console.log("Downloaded, attempting to install."); console.log("Downloaded, attempting to install.");
const unzip = require("unzipper") const unzip = require("unzipper")
fs.createReadStream(dest).pipe(unzip.Extract({ path: pluginFolder })); fs.createReadStream(dest).pipe(unzip.Extract({ path: pluginFolder }));
console.log("Success! GooseMod will start on next session!") electron.dialog.showMessageBox({
title: "ArmCord",
type: "warning",
message: "ArmCord installed GooseMod onto your client.",
detail:
"If you wish to use it restart your ArmCord completely using tray icon. It should appear in next session. GooseMod is reccomended to every user of ArmCord due to various improvements and bugfixes it ships with.",
});
}); });
} }
catch (e){ catch (e){