forked from Vencord/Vesktop
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
106 changed files
with
9,018 additions
and
558 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,8 @@ | ||
# githubs api has a rate limit of 60/h if not authorised. | ||
# you may quickly hit that and get rate limited. To counteract this, you can provide a github token | ||
# here and it will be used. To do so, create a token at the following links and just leave | ||
# all permissions at the defaults (public repos read only, 0 permissions): | ||
# https://github.com/settings/personal-access-tokens/new | ||
GITHUB_TOKEN= | ||
|
||
ELECTRON_LAUNCH_FLAGS="--ozone-platform-hint=auto --enable-webrtc-pipewire-capturer --enable-features=WaylandWindowDecorations" |
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,69 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"ignorePatterns": ["dist", "node_modules"], | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"license-header", | ||
"simple-import-sort", | ||
"unused-imports", | ||
"path-alias", | ||
"prettier" | ||
], | ||
"settings": { | ||
"import/resolver": { | ||
"alias": { | ||
"map": [] | ||
} | ||
} | ||
}, | ||
"rules": { | ||
"license-header/header": ["error", "scripts/header.txt"], | ||
"eqeqeq": ["error", "always", { "null": "ignore" }], | ||
"spaced-comment": ["error", "always", { "markers": ["!"] }], | ||
"yoda": "error", | ||
"prefer-destructuring": [ | ||
"error", | ||
{ | ||
"VariableDeclarator": { "array": false, "object": true }, | ||
"AssignmentExpression": { "array": false, "object": false } | ||
} | ||
], | ||
"operator-assignment": ["error", "always"], | ||
"no-useless-computed-key": "error", | ||
"no-unneeded-ternary": ["error", { "defaultAssignment": false }], | ||
"no-invalid-regexp": "error", | ||
"no-constant-condition": ["error", { "checkLoops": false }], | ||
"no-duplicate-imports": "error", | ||
"no-extra-semi": "error", | ||
"dot-notation": "error", | ||
"no-useless-escape": "error", | ||
"no-fallthrough": "error", | ||
"for-direction": "error", | ||
"no-async-promise-executor": "error", | ||
"no-cond-assign": "error", | ||
"no-dupe-else-if": "error", | ||
"no-duplicate-case": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-loss-of-precision": "error", | ||
"no-misleading-character-class": "error", | ||
"no-prototype-builtins": "error", | ||
"no-regex-spaces": "error", | ||
"no-shadow-restricted-names": "error", | ||
"no-unexpected-multiline": "error", | ||
"no-unsafe-optional-chaining": "error", | ||
"no-useless-backreference": "error", | ||
"use-isnan": "error", | ||
"prefer-const": "error", | ||
"prefer-spread": "error", | ||
|
||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error", | ||
|
||
"unused-imports/no-unused-imports": "error", | ||
|
||
"path-alias/no-relative": "error", | ||
|
||
"prettier/prettier": "error" | ||
} | ||
} |
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,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS/Distro: [e.g. Windows / Fedora Linux / MacOs] | ||
- Desktop Environment (linux only): [e.g. gnome, kde, sway] | ||
- Version: [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,10 @@ | ||
--- | ||
name: Custom issue template | ||
about: Describe this issue template's purpose here. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,38 @@ | ||
name: Update metainfo on release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json | ||
|
||
- name: Use Node.js 18.18.2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.18.2 | ||
|
||
- name: Install dependencies | ||
run: pnpm i | ||
|
||
- name: Update metainfo | ||
run: pnpm updateMeta | ||
|
||
- name: Commit and merge in changes | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git checkout -b ci/meta-update | ||
git add meta/dev.vencord.Vesktop.metainfo.xml | ||
git commit -m "Insert release changes for ${{ github.event.release.tag_name }}" | ||
git push origin ci/meta-update | ||
gh pr create -B main -H ci/meta-update -t "Metainfo for ${{ github.event.release.tag_name }}" -b "This PR updates the metainfo for release ${{ github.event.release.tag_name }}. @lewisakura @Vendicated" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,52 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
include: | ||
- os: macos-latest | ||
platform: mac | ||
- os: ubuntu-latest | ||
platform: linux | ||
- os: windows-latest | ||
platform: windows | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json | ||
|
||
- name: Use Node.js 18.18.2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.18.2 | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Run Electron Builder | ||
if: ${{ matrix.platform != 'mac' }} | ||
run: | | ||
pnpm electron-builder --${{ matrix.platform }} --publish always | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run Electron Builder | ||
if: ${{ matrix.platform == 'mac' }} | ||
run: | | ||
pnpm electron-builder --${{ matrix.platform }} --publish always | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CSC_LINK_: ${{ secrets.APPLE_SIGNING_CERT }} |
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,32 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json | ||
|
||
- name: Use Node.js 18.18.2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.18.2 | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Run tests | ||
run: pnpm test | ||
|
||
- name: Test if it compiles | ||
run: | | ||
pnpm build | ||
pnpm build --dev |
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,25 @@ | ||
name: Submit to Winget Community Repo | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
type: string | ||
description: The release tag to submit | ||
required: true | ||
|
||
jobs: | ||
winget: | ||
name: Publish winget package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Submit package to Winget Community Repo | ||
uses: vedantmgoyal2009/winget-releaser@e68d386d5d6a1cef8cb0fb5e62b77ebcb83e7d58 # v2 | ||
with: | ||
identifier: Vencord.Vesktop | ||
token: ${{ secrets.WINGET_PAT }} | ||
installers-regex: '\.exe$' | ||
release-tag: ${{ inputs.tag || github.event.release.tag_name }} | ||
fork-user: shiggybot |
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
dist | ||
node_modules | ||
.env | ||
.DS_Store | ||
.idea/ | ||
.pnpm-store/ |
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 @@ | ||
node-linker=hoisted |
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,8 @@ | ||
tabWidth: 4 | ||
semi: true | ||
printWidth: 120 | ||
trailingComma: none | ||
bracketSpacing: true | ||
arrowParens: avoid | ||
useTabs: false | ||
endOfLine: lf |
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,25 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"cSpell.words": ["Vesktop"] | ||
} |
Oops, something went wrong.