mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Updates And Fixes
This commit is contained in:
parent
8172468fba
commit
d84b833bc4
5 changed files with 138 additions and 92 deletions
182
.github/workflows/build.yml
vendored
182
.github/workflows/build.yml
vendored
|
@ -1,111 +1,113 @@
|
||||||
name: Release
|
name: Release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/build.yml
|
- .github/workflows/build.yml
|
||||||
- src/**
|
- src/**
|
||||||
- browser/**
|
- browser/**
|
||||||
- scripts/build/**
|
- scripts/build/**
|
||||||
- package.json
|
- package.json
|
||||||
- pnpm-lock.yaml
|
- pnpm-lock.yaml
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
|
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
DetermineRunner:
|
DetermineRunner:
|
||||||
name: Determine Runner
|
name: Determine Runner
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
runner: ${{ steps.set-runner.outputs.runner }}
|
runner: ${{ steps.set-runner.outputs.runner }}
|
||||||
steps:
|
steps:
|
||||||
- name: Determine which runner to use
|
- name: Determine which runner to use
|
||||||
id: set-runner
|
id: set-runner
|
||||||
uses: benjaminmichaelis/get-soonest-available-runner@v1.1.0
|
uses: benjaminmichaelis/get-soonest-available-runner@v1.1.0
|
||||||
with:
|
with:
|
||||||
primary-runner: "self-hosted"
|
primary-runner: "self-hosted"
|
||||||
fallback-runner: "ubuntu-latest"
|
fallback-runner: "ubuntu-latest"
|
||||||
min-available-runners: 1
|
min-available-runners: 1
|
||||||
github-token: ${{ env.GITHUB_TOKEN }}
|
github-token: ${{ env.GITHUB_TOKEN }}
|
||||||
|
|
||||||
Build:
|
Build:
|
||||||
name: Build Equicord
|
name: Build Equicord
|
||||||
needs: DetermineRunner
|
needs: DetermineRunner
|
||||||
runs-on: ${{ needs.DetermineRunner.outputs.runner}}
|
runs-on: ${{ needs.DetermineRunner.outputs.runner}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: "recursive"
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json
|
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json
|
||||||
|
|
||||||
- name: Use Node.js 20
|
- name: Use Node.js 20
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build web
|
- name: Build web
|
||||||
run: pnpm buildWebStandalone
|
run: pnpm buildWebStandalone
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build --standalone
|
run: pnpm build --standalone
|
||||||
|
|
||||||
- name: Generate plugin list
|
- name: Generate plugin list
|
||||||
run: pnpm generatePluginJson dist/plugins.json dist/plugin-readmes.json
|
run: pnpm generatePluginJson dist/plugins.json dist/plugin-readmes.json
|
||||||
|
|
||||||
- name: Generate Equicord plugin list
|
- name: Generate Equicord plugin list
|
||||||
run: pnpm generateEquicordPluginJson dist/equicordplugins.json
|
run: pnpm generateEquicordPluginJson dist/equicordplugins.json
|
||||||
|
|
||||||
- name: Collect files to be released
|
- name: Collect files to be released
|
||||||
run: |
|
run: |
|
||||||
cd dist
|
cd dist
|
||||||
mkdir release
|
mkdir release
|
||||||
|
|
||||||
cp browser/browser.* release
|
cp browser/browser.* release
|
||||||
cp Vencord.user.{js,js.LEGAL.txt} release
|
cp Vencord.user.{js,js.LEGAL.txt} release
|
||||||
|
|
||||||
# copy the plugin data jsons, the extension zips and the desktop/vesktop asars
|
# copy the plugin data jsons, the extension zips and the desktop/vesktop asars
|
||||||
cp *.{json,zip,asar} release
|
cp *.{json,zip,asar} release
|
||||||
|
|
||||||
# legacy un-asared files
|
# legacy un-asared files
|
||||||
# FIXME: remove at some point
|
# FIXME: remove at some point
|
||||||
cp desktop/* release
|
cp desktop/* release
|
||||||
for file in vesktop/*; do
|
for file in vesktop/*; do
|
||||||
filename=$(basename "$file")
|
filename=$(basename "$file")
|
||||||
cp "$file" "release/vencordDesktop${filename^}"
|
cp "$file" "release/vencordDesktop${filename^}"
|
||||||
done
|
done
|
||||||
for file in equibop/*; do
|
for file in equibop/*; do
|
||||||
filename=$(basename "$file")
|
filename=$(basename "$file")
|
||||||
cp "$file" "release/equicordDesktop${filename^}"
|
cp "$file" "release/equicordDesktop${filename^}"
|
||||||
done
|
done
|
||||||
|
|
||||||
find release -size 0 -delete
|
find release -size 0 -delete
|
||||||
rm release/package.json
|
rm release/package.json
|
||||||
rm release/*.map
|
rm release/*.map
|
||||||
|
|
||||||
- name: Upload Equicord
|
- name: Upload Equicord
|
||||||
if: github.repository == 'Equicord/Equicord'
|
if: github.repository == 'Equicord/Equicord'
|
||||||
run: |
|
run: |
|
||||||
gh release upload latest --clobber dist/release/*
|
gh release upload latest --clobber dist/release/*
|
||||||
|
|
||||||
- name: Upload Plugins JSON to Ignore repo
|
- name: Upload Plugins JSON to Ignore repo
|
||||||
if: github.repository == 'Equicord/Equicord'
|
if: github.repository == 'Equicord/Equicord'
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "$USERNAME"
|
git config --global user.name "$USERNAME"
|
||||||
git config --global user.email "78185467+thororen1234@users.noreply.github.com"
|
git config --global user.email "78185467+thororen1234@users.noreply.github.com"
|
||||||
git clone https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git upload
|
git clone https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git upload
|
||||||
cd upload
|
cd upload
|
||||||
rm plugins.json
|
rm plugins.json
|
||||||
cp -r ../dist/equicordplugins.json plugins.json
|
cp -r ../dist/equicordplugins.json plugins.json
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Plugins for https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
|
git commit -m "Plugins for https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
|
||||||
git push --force https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git
|
git push --force https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git
|
||||||
env:
|
env:
|
||||||
API_TOKEN: ${{ secrets.ETOKEN }}
|
API_TOKEN: ${{ secrets.ETOKEN }}
|
||||||
GH_REPO: Equicord/Equibored
|
GH_REPO: Equicord/Equibored
|
||||||
USERNAME: thororen1234
|
USERNAME: thororen1234
|
||||||
|
|
3
.github/workflows/reportBrokenPlugins.yml
vendored
3
.github/workflows/reportBrokenPlugins.yml
vendored
|
@ -15,7 +15,8 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
if: ${{ github.event_name == 'schedule' }}
|
if: ${{ github.event_name == 'schedule' }}
|
||||||
with:
|
with:
|
||||||
ref: dev
|
ref: dev
|
||||||
|
submodules: "recursive"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
|
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -36,6 +36,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: "recursive"
|
||||||
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json
|
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json
|
||||||
|
|
||||||
- name: Use Node.js 20
|
- name: Use Node.js 20
|
||||||
|
@ -63,6 +65,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: "recursive"
|
||||||
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json
|
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json
|
||||||
|
|
||||||
- name: Use Node.js 20
|
- name: Use Node.js 20
|
||||||
|
|
39
.gitmodules
vendored
Normal file
39
.gitmodules
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
[submodule "src/equicordplugins/baseDecoder"]
|
||||||
|
path = src/equicordplugins/baseDecoder
|
||||||
|
url = https://github.com/ThePirateStoner/vencord-base64-decoder
|
||||||
|
[submodule "src/equicordplugins/betterActivities"]
|
||||||
|
path = src/equicordplugins/betterActivities
|
||||||
|
url = https://github.com/D3SOX/vc-betterActivities
|
||||||
|
[submodule "src/equicordplugins/blockKrisp"]
|
||||||
|
path = src/equicordplugins/blockKrisp
|
||||||
|
url = https://github.com/D3SOX/vc-blockKrisp.git
|
||||||
|
[submodule "src/equicordplugins/ignoreTerms"]
|
||||||
|
path = src/equicordplugins/ignoreTerms
|
||||||
|
url = https://github.com/D3SOX/vc-ignoreTerms.git
|
||||||
|
[submodule "src/equicordplugins/notifyUserChanges"]
|
||||||
|
path = src/equicordplugins/notifyUserChanges
|
||||||
|
url = https://github.com/D3SOX/vc-notifyUserChanges
|
||||||
|
[submodule "src/equicordplugins/voiceChatUtils"]
|
||||||
|
path = src/equicordplugins/voiceChatUtils
|
||||||
|
url = https://github.com/D3SOX/vc-voiceChatUtilities
|
||||||
|
[submodule "src/equicordplugins/customSounds"]
|
||||||
|
path = src/equicordplugins/customSounds
|
||||||
|
url = https://github.com/ScattrdBlade/customSounds
|
||||||
|
[submodule "src/equicordplugins/newPluginsManager"]
|
||||||
|
path = src/equicordplugins/newPluginsManager
|
||||||
|
url = https://github.com/Sqaaakoi/vc-newPluginsManager.git
|
||||||
|
[submodule "src/equicordplugins/replaceActivityTypes"]
|
||||||
|
path = src/equicordplugins/replaceActivityTypes
|
||||||
|
url = https://github.com/nyakowint/replaceActivityTypes.git
|
||||||
|
[submodule "src/equicordplugins/sekaiStickers"]
|
||||||
|
path = src/equicordplugins/sekaiStickers
|
||||||
|
url = https://codeberg.org/maikokain/sekaistickers-vencord.git
|
||||||
|
[submodule "src/equicordplugins/gensokyoRadioRPC"]
|
||||||
|
path = src/equicordplugins/gensokyoRadioRPC
|
||||||
|
url = https://github.com/ForkPrince/GensokyoRadioRPC.git
|
||||||
|
[submodule "src/equicordplugins/holyNotes"]
|
||||||
|
path = src/equicordplugins/holyNotes
|
||||||
|
url = https://github.com/WolfPlugs/HolyNotes-VC.git
|
||||||
|
[submodule "src/equicordplugins/themeLibrary"]
|
||||||
|
path = src/equicordplugins/themeLibrary
|
||||||
|
url = https://github.com/Faf4a/ThemeLibrary
|
|
@ -33,7 +33,7 @@ An enhanced version of [Vencord](https://github.com/Vendicated/Vencord) by [Vend
|
||||||
- BetterQuickReact by Ven and Sqaaakoi
|
- BetterQuickReact by Ven and Sqaaakoi
|
||||||
- BetterUserArea by Samwich
|
- BetterUserArea by Samwich
|
||||||
- BlockKeywords by catcraft
|
- BlockKeywords by catcraft
|
||||||
- BlockKrsip by D3SOX
|
- BlockKrisp by D3SOX
|
||||||
- BypassDND by Inbestigator
|
- BypassDND by Inbestigator
|
||||||
- CleanChannelName by AutumnVN
|
- CleanChannelName by AutumnVN
|
||||||
- ClientSideBlock by Samwich
|
- ClientSideBlock by Samwich
|
||||||
|
|
Loading…
Reference in a new issue