mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Windows on ARM CI
This commit is contained in:
parent
e5ab7a7232
commit
dac886ecbd
2 changed files with 41 additions and 3 deletions
38
.github/workflows/winArm.yml
vendored
Normal file
38
.github/workflows/winArm.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
name: Publish to WinGet
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [released]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-windowsOnARM:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '18'
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install pnpm
|
||||||
|
run: npm i -g pnpm && pnpm setup
|
||||||
|
- name: Set architecture
|
||||||
|
run: set npm_config_arch=arm64
|
||||||
|
- name: Install Node dependencies
|
||||||
|
run: pnpm install -g cargo-cp-artifact && pnpm install
|
||||||
|
|
||||||
|
- name: Install Electron-Builder
|
||||||
|
run: pnpm install -g electron-builder
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build && electron-builder --windows --arm64
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Delete unpacked builds
|
||||||
|
run: Remove-Item -LiteralPath ".\dist\win-unpacked" -Force -Recurse
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ArmCordWindows
|
||||||
|
path: dist/
|
|
@ -74,15 +74,15 @@ export function createSettingsWindow() {
|
||||||
setConfigBulk(args);
|
setConfigBulk(args);
|
||||||
});
|
});
|
||||||
ipcMain.on("openStorageFolder", async (event) => {
|
ipcMain.on("openStorageFolder", async (event) => {
|
||||||
shell.openPath(storagePath);
|
shell.showItemInFolder(storagePath);
|
||||||
await sleep(1000);
|
await sleep(1000);
|
||||||
});
|
});
|
||||||
ipcMain.on("openThemesFolder", async (event) => {
|
ipcMain.on("openThemesFolder", async (event) => {
|
||||||
shell.openPath(themesPath);
|
shell.showItemInFolder(themesPath);
|
||||||
await sleep(1000);
|
await sleep(1000);
|
||||||
});
|
});
|
||||||
ipcMain.on("openPluginsFolder", async (event) => {
|
ipcMain.on("openPluginsFolder", async (event) => {
|
||||||
shell.openPath(pluginsPath);
|
shell.showItemInFolder(pluginsPath);
|
||||||
await sleep(1000);
|
await sleep(1000);
|
||||||
});
|
});
|
||||||
ipcMain.on("getLangName", async (event) => {
|
ipcMain.on("getLangName", async (event) => {
|
||||||
|
|
Loading…
Reference in a new issue