diff --git a/.github/workflows/winArm.yml b/.github/workflows/winArm.yml new file mode 100644 index 0000000..dc1626a --- /dev/null +++ b/.github/workflows/winArm.yml @@ -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/ \ No newline at end of file diff --git a/src/settings/main.ts b/src/settings/main.ts index d2d8f42..a2b4983 100644 --- a/src/settings/main.ts +++ b/src/settings/main.ts @@ -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) => {