-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
565110e
commit 38b6cea
Showing
2 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |