Skip to content

Commit

Permalink
win7 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
smartfrigde committed Apr 30, 2024
1 parent 565110e commit 38b6cea
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/win7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ArmCord Win7/8.1 Build
These builds are based on Electron 22 which is severaly outdated, only use this if you can't apply [VxKex](https://github.com/vxiiduu/VxKex/) or similar patches to your legacy system.
Make sure to join our [Discord server](https://discord.gg/uaW5vMY3V6) to share opinions, or to chat with ArmCord developers!
85 changes: 85 additions & 0 deletions .github/workflows/win7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Electron 22 build
on:
push:
branches:
- win7

env:
FORCE_COLOR: true

jobs:
build-legacywindows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json

- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
cache: "pnpm"

- name: Install Node dependencies
run: pnpm install -g cargo-cp-artifact && pnpm install

- name: Install Electron-Builder
run: pnpm install -g electron-builder

- name: Install Electron 22
run: pnpm install electron@v22.3.27

- 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

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ArmCordLegacyWindows
path: dist/ArmCord-3.3.0-win.zip


release:
runs-on: ubuntu-latest
needs: [build-legacywindows]
steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: actions/download-artifact@v2
with:
name: ArmCordLegacyWindows
path: windows
- name: Rename E22 zip
run: mv windows/ArmCord-3.3.0-win.zip windows/ArmCord-3.3.0-win7.zip

- name: Get some values needed for the release
id: vars
shell: bash
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- uses: dev-drprasad/delete-tag-and-release@v0.2.1
with:
delete_release: true
tag_name: e22
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create the release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: devbuild
name: Dev Build ${{ steps.vars.outputs.sha_short }}
draft: false
prerelease: true
body_path: .github/win7.md
files: |
windows/ArmCord-3.3.0-win7.zip

0 comments on commit 38b6cea

Please sign in to comment.