mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Compare commits
6 commits
095a060be5
...
4b4e72ccf4
Author | SHA1 | Date | |
---|---|---|---|
|
4b4e72ccf4 | ||
|
97e8fb5e69 | ||
|
61104a166e | ||
|
aac52167f1 | ||
|
009f6ba19a | ||
|
03082d3d7f |
5 changed files with 43 additions and 13 deletions
3
.github/release.md
vendored
3
.github/release.md
vendored
|
@ -1,2 +1,3 @@
|
||||||
# Thanks for checking out ArmCord dev build!
|
# Thanks for checking out ArmCord dev builds!
|
||||||
|
These builds are unstable and not ready for full release. They contain new experimental features and changes. We provide no official support for them.
|
||||||
Make sure to join our [Discord server](https://discord.gg/uaW5vMY3V6) to share opinions, or to chat with ArmCord developers!
|
Make sure to join our [Discord server](https://discord.gg/uaW5vMY3V6) to share opinions, or to chat with ArmCord developers!
|
28
.github/workflows/dev.yml
vendored
28
.github/workflows/dev.yml
vendored
|
@ -1,5 +1,8 @@
|
||||||
name: Dev build
|
name: Dev build
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
|
@ -23,13 +26,18 @@ jobs:
|
||||||
run: npm install -g electron-builder
|
run: npm install -g electron-builder
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build && electron-builder --linux zip
|
run: npm run build && electron-builder --linux zip && electron-builder --arm64 --linux zip
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ArmCordLinux.zip
|
name: ArmCordLinux.zip
|
||||||
path: dist/ArmCord-3.1.0.zip
|
path: dist/ArmCord-3.1.0.zip
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ArmCordLinuxArm64.zip
|
||||||
|
path: dist/ArmCord-3.1.0-arm64.zip
|
||||||
|
|
||||||
build-mac:
|
build-mac:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -108,6 +116,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ArmCordLinux.zip
|
name: ArmCordLinux.zip
|
||||||
path: linux
|
path: linux
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ArmCordLinuxArm64.zip
|
||||||
|
path: linux
|
||||||
- run: |
|
- run: |
|
||||||
ls
|
ls
|
||||||
ls windows
|
ls windows
|
||||||
|
@ -118,18 +131,25 @@ jobs:
|
||||||
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)"
|
||||||
|
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
||||||
|
with:
|
||||||
|
delete_release: true
|
||||||
|
tag_name: devbuild
|
||||||
|
repo: ArmCord/ArmCord
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Create the release
|
- name: Create the release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-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: devbuild
|
||||||
name: Dev Build ${{ steps.vars.outputs.sha_short }}
|
name: Dev Build ${{ steps.vars.outputs.sha_short }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
body_path: .github/release.md
|
body_path: .github/release.md
|
||||||
files: |
|
files: |
|
||||||
linux/ArmCord-3.1.0.zip
|
linux/ArmCord-3.1.0.zip
|
||||||
|
linux/ArmCord-3.1.0-arm64.zip
|
||||||
macos/ArmCord-3.1.0-mac.zip
|
macos/ArmCord-3.1.0-mac.zip
|
||||||
windows/ArmCord-3.1.0-win.zip
|
windows/ArmCord-3.1.0-win.zip
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
# How to run/install it?
|
# How to run/install it?
|
||||||
### Recommended:
|
### Recommended:
|
||||||
Check releases tab for precompiled packages for Linux, Windows and ~~Mac OS~~ (Mac OS is broken see [#48](https://github.com/ArmCord/ArmCord/issues/48)). Alternatively use our Sourceforge mirror.
|
Check releases tab for precompiled packages for Linux, Windows and Mac OS. Alternatively use our Sourceforge mirror.
|
||||||
<a href="https://sourceforge.net/projects/armcord/files/latest/download"><img alt="Download ArmCord" src="https://a.fsdn.com/con/app/sf-download-button" width=276 height=48 srcset="https://a.fsdn.com/con/app/sf-download-button?button_size=2x 2x"></a>
|
<a href="https://sourceforge.net/projects/armcord/files/latest/download"><img alt="Download ArmCord" src="https://a.fsdn.com/con/app/sf-download-button" width=276 height=48 srcset="https://a.fsdn.com/con/app/sf-download-button?button_size=2x 2x"></a>
|
||||||
### AUR Package
|
### AUR Package
|
||||||
Armcord is also available on the Arch User Repository (AUR) [here](https://aur.archlinux.org/packages/armcord-bin/).
|
Armcord is also available on the Arch User Repository (AUR) [here](https://aur.archlinux.org/packages/armcord-bin/).
|
||||||
|
@ -58,7 +58,8 @@ Install it via an AUR helper tool like `yay`.
|
||||||
## 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 and Linux as long as it has NodeJS, npm and Electron support.
|
||||||
|
## 4. Where can I translate this?
|
||||||
|
- Translations are done using our [Weblate page](https://hosted.weblate.org/projects/armcord/armcord/). They're pushed to this [repo](https://github.com/ArmCord/i18n).
|
||||||
# Credits
|
# Credits
|
||||||
[ArmCord UI Elements and few features](https://github.com/kckarnige)
|
[ArmCord UI Elements and few features](https://github.com/kckarnige)
|
||||||
[Cumcord](https://github.com/Cumcord/Cumcord)
|
[Cumcord](https://github.com/Cumcord/Cumcord)
|
||||||
|
|
|
@ -10,3 +10,6 @@
|
||||||
.notice-2HEN-u {
|
.notice-2HEN-u {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.sidebar-1tnWFu {
|
||||||
|
border-top-left-radius: 8px !important;
|
||||||
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ export async function getConfig(object: string) {
|
||||||
const settingsFile = storagePath + "settings.json";
|
const settingsFile = storagePath + "settings.json";
|
||||||
let rawdata = fs.readFileSync(settingsFile, "utf-8");
|
let rawdata = fs.readFileSync(settingsFile, "utf-8");
|
||||||
let returndata = JSON.parse(rawdata);
|
let returndata = JSON.parse(rawdata);
|
||||||
console.log(returndata[object]);
|
console.log(object + ": " + returndata[object]);
|
||||||
return returndata[object];
|
return returndata[object];
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Config probably doesn't exist yet. Returning setup value.");
|
console.log("Config probably doesn't exist yet. Returning setup value.");
|
||||||
|
@ -124,7 +124,12 @@ export async function checkIfConfigExists() {
|
||||||
const userDataPath = app.getPath("userData");
|
const userDataPath = app.getPath("userData");
|
||||||
const storagePath = path.join(userDataPath, "/storage/");
|
const storagePath = path.join(userDataPath, "/storage/");
|
||||||
const settingsFile = storagePath + "settings.json";
|
const settingsFile = storagePath + "settings.json";
|
||||||
|
|
||||||
if (!fs.existsSync(settingsFile)) {
|
if (!fs.existsSync(settingsFile)) {
|
||||||
|
if (!fs.existsSync(storagePath)) {
|
||||||
|
fs.mkdirSync(storagePath);
|
||||||
|
console.log("Created missing storage folder");
|
||||||
|
}
|
||||||
console.log("First run of the ArmCord. Starting setup.");
|
console.log("First run of the ArmCord. Starting setup.");
|
||||||
setup();
|
setup();
|
||||||
contentPath = path.join(__dirname, "/content/setup.html");
|
contentPath = path.join(__dirname, "/content/setup.html");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue