mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Compare commits
3 commits
095a060be5
...
3854e5fa39
Author | SHA1 | Date | |
---|---|---|---|
|
3854e5fa39 | ||
|
d68cec6396 | ||
|
1f01ae67dd |
4 changed files with 1020 additions and 2003 deletions
162
.github/workflows/dev.yml
vendored
162
.github/workflows/dev.yml
vendored
|
@ -1,135 +1,59 @@
|
||||||
name: Dev build
|
name: Dev build
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
env:
|
|
||||||
FORCE_COLOR: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '18'
|
||||||
|
- run: sudo apt install -y wine
|
||||||
- name: Checkout code
|
- run: npm install
|
||||||
uses: actions/checkout@v2
|
- run: npm run CIbuild
|
||||||
|
- id: vars
|
||||||
- name: Install Node dependencies
|
|
||||||
run: npm install
|
|
||||||
|
|
||||||
- name: Install Electron-Builder
|
|
||||||
run: npm install -g electron-builder
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: npm run build && electron-builder --linux zip
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ArmCordLinux.zip
|
|
||||||
path: dist/ArmCord-3.1.0.zip
|
|
||||||
|
|
||||||
build-mac:
|
|
||||||
runs-on: macos-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: '18'
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Node dependencies
|
|
||||||
run: npm install
|
|
||||||
|
|
||||||
- name: Install Electron-Builder
|
|
||||||
run: npm install -g electron-builder
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: npm run build && electron-builder --macos zip
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ArmCordMac.zip
|
|
||||||
path: dist/ArmCord-3.1.0-mac.zip
|
|
||||||
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: '18'
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Node dependencies
|
|
||||||
run: npm install
|
|
||||||
|
|
||||||
- name: Install Electron-Builder
|
|
||||||
run: npm install -g electron-builder
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: npm run build && electron-builder --windows zip
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ArmCordWindows.zip
|
|
||||||
path: dist/ArmCord-3.1.0-win.zip
|
|
||||||
|
|
||||||
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [build-linux, build-mac, build-windows]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ArmCordMac.zip
|
|
||||||
path: macos
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ArmCordWindows.zip
|
|
||||||
path: windows
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ArmCordLinux.zip
|
|
||||||
path: linux
|
|
||||||
- run: |
|
|
||||||
ls
|
|
||||||
ls windows
|
|
||||||
ls macos
|
|
||||||
ls linux
|
|
||||||
- name: Get some values needed for the release
|
|
||||||
id: vars
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||||
|
- name: Create Release
|
||||||
- name: Create the release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.vars.outputs.sha_short }}
|
tag_name: ${{ steps.vars.outputs.sha_short }}
|
||||||
name: Dev Build ${{ steps.vars.outputs.sha_short }}
|
release_name: Release ${{ steps.vars.outputs.sha_short }}
|
||||||
draft: false
|
draft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
body_path: .github/release.md
|
body_path: ./.github/release.md
|
||||||
files: |
|
- uses: actions/upload-release-asset@v1
|
||||||
linux/ArmCord-3.1.0.zip
|
env:
|
||||||
macos/ArmCord-3.1.0-mac.zip
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
windows/ArmCord-3.1.0-win.zip
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: /home/runner/work/ArmCord/ArmCord/dist/ArmCord-3.1.0.zip
|
||||||
|
asset_name: ArmCordLinux.zip
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
- uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: /home/runner/work/ArmCord/ArmCord/dist/ArmCord-3.1.0-win.zip
|
||||||
|
asset_name: ArmCordWindows.zip
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
- uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: /home/runner/work/ArmCord/ArmCord/dist/ArmCord-3.1.0-mac.zip
|
||||||
|
asset_name: ArmCordWindows.zip
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
- run: |
|
||||||
|
curl --request PATCH \
|
||||||
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
https://api.github.com/repos/${{ github.repository }}/releases/${{steps.create_release.outputs.id}} \
|
||||||
|
-d '{"draft":false}'
|
|
@ -57,7 +57,7 @@ Install it via an AUR helper tool like `yay`.
|
||||||
-We are using official web app and adding some magic powder to make it all work!
|
-We are using official web app and adding some magic powder to make it all work!
|
||||||
## 3. Can I use this on other architectures or operating systems?
|
## 3. Can I use this on other architectures or operating systems?
|
||||||
|
|
||||||
-Yes! ArmCord should work normally under Windows, Mac OS and Linux as long as it has NodeJS, npm and Electron support.
|
-Yes! ArmCord should work normally under Windows, ~~Mac OS~~ (Mac OS is broken see [#48](https://github.com/ArmCord/ArmCord/issues/48)) and Linux as long as it has NodeJS, npm and Electron support.
|
||||||
|
|
||||||
# Credits
|
# Credits
|
||||||
[ArmCord UI Elements and few features](https://github.com/kckarnige)
|
[ArmCord UI Elements and few features](https://github.com/kckarnige)
|
||||||
|
|
2831
package-lock.json
generated
2831
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -24,11 +24,11 @@
|
||||||
"homepage": "https://github.com/armcord/armcord#readme",
|
"homepage": "https://github.com/armcord/armcord#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/electron-json-storage": "^4.5.0",
|
"@types/electron-json-storage": "^4.5.0",
|
||||||
"@types/node": "^17.0.25",
|
"@types/node": "^17.0.24",
|
||||||
"@types/ws": "^8.5.3",
|
"@types/ws": "^8.5.3",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"electron": "^18.0.4",
|
"electron": "^18.0.4",
|
||||||
"electron-builder": "^23.0.3",
|
"electron-builder": "^22.5.1",
|
||||||
"husky": "^7.0.4",
|
"husky": "^7.0.4",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"typescript": "^4.5.4"
|
"typescript": "^4.5.4"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue