Windows on ARM CI

This commit is contained in:
smartfridge 2022-11-19 20:00:56 +01:00
parent e5ab7a7232
commit dac886ecbd
2 changed files with 41 additions and 3 deletions

38
.github/workflows/winArm.yml vendored Normal file
View 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/

View File

@ -74,15 +74,15 @@ export function createSettingsWindow() {
setConfigBulk(args);
});
ipcMain.on("openStorageFolder", async (event) => {
shell.openPath(storagePath);
shell.showItemInFolder(storagePath);
await sleep(1000);
});
ipcMain.on("openThemesFolder", async (event) => {
shell.openPath(themesPath);
shell.showItemInFolder(themesPath);
await sleep(1000);
});
ipcMain.on("openPluginsFolder", async (event) => {
shell.openPath(pluginsPath);
shell.showItemInFolder(pluginsPath);
await sleep(1000);
});
ipcMain.on("getLangName", async (event) => {