mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Plugin install warning + fixed workflows?
This commit is contained in:
parent
0aa6e1399c
commit
847cb9c2c8
2 changed files with 34 additions and 35 deletions
61
.github/workflows/build.yml
vendored
61
.github/workflows/build.yml
vendored
|
@ -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
|
||||||
with:
|
|
||||||
node-version: 14
|
- name: Install Node.js, NPM and Yarn
|
||||||
- name: install dependencies
|
uses: actions/setup-node@v1
|
||||||
run: npm install
|
with:
|
||||||
- name: build
|
node-version: 16
|
||||||
run: npm run make
|
|
||||||
|
- 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') }}
|
|
@ -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){
|
||||||
|
|
Loading…
Reference in a new issue