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
on: [push, pull_request]
name: Build/release
on: push
jobs:
build_on_linux:
runs-on: ubuntu-latest
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
release:
runs-on: ${{ matrix.os }}
build_on_mac:
runs-on: macos-latest
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
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
build_on_win:
runs-on: windows-latest
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
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
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.");
const unzip = require("unzipper")
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){