mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Update dev.yml
This commit is contained in:
parent
0a77987cec
commit
d40b76719a
1 changed files with 34 additions and 1 deletions
35
.github/workflows/dev.yml
vendored
35
.github/workflows/dev.yml
vendored
|
@ -113,7 +113,40 @@ jobs:
|
|||
with:
|
||||
name: ArmCordWindows.zip
|
||||
path: dist/ArmCord-3.1.0-win.zip
|
||||
|
||||
build-windowsOnARM:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18'
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set architecture
|
||||
run: set npm_config_arch=arm64
|
||||
|
||||
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
|
||||
|
||||
- name: Install Node dependencies
|
||||
run: pnpm install -g cargo-cp-artifact && pnpm install
|
||||
|
||||
- name: Install Electron-Builder
|
||||
run: pnpm install -g electron-builder
|
||||
|
||||
- name: Replace the version number
|
||||
run: (Get-Content src/utils.ts) -replace "\d\.\d\.\d", "DEV" | Out-File src/utils.ts
|
||||
|
||||
- name: Build
|
||||
run: npm run build && electron-builder --windows zip --arm64
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ArmCordWindowsArm64.zip
|
||||
path: dist/ArmCord-3.1.0-win.zip
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue