Skip to content

Commit 1cec674

Browse files
committed
chore: dot files
1 parent 912bbcf commit 1cec674

29 files changed

+550
-1
lines changed

.devcontainer/devcontainer.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Heroic Games Launcher",
3+
4+
// Sets the run context to one level up instead of the .devcontainer folder.
5+
"context": "..",
6+
7+
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
8+
"dockerFile": "../Dockerfile",
9+
10+
// Add the IDs of extensions you want installed when the container is created.
11+
"extensions": [],
12+
13+
"postCreateCommand": "pacman -Syyu --noconfirm && pacman -S nodejs npm yarn --noconfirm"
14+
}

.editorconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*.css]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
max_line_length = 80
10+
trim_trailing_whitespace = true
11+
12+
[{*.ts, *.tsx, *.js}]
13+
charset = utf-8
14+
end_of_line = lf
15+
indent_size = 2
16+
indent_style = space
17+
insert_final_newline = true
18+
max_line_length = 80
19+
trim_trailing_whitespace = true

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public/start-react.js
2+
i18next-parser.config.js
3+
flatpak/build/
4+
flatpak/.flatpak-builder/
5+
**/__tests__/**

.eslintrc

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:react/recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"prettier"
12+
],
13+
"root": true,
14+
"parser": "@typescript-eslint/parser",
15+
"parserOptions": {
16+
"ecmaFeatures": {
17+
"jsx": true
18+
},
19+
"ecmaVersion": 12,
20+
"sourceType": "module",
21+
"project": ["./tsconfig.json", "./electron/tsconfig.json"]
22+
},
23+
"plugins": ["react", "@typescript-eslint"],
24+
"settings": {
25+
"react": {
26+
"version": "detect"
27+
}
28+
},
29+
"rules": {
30+
"@typescript-eslint/explicit-module-boundary-types": "off",
31+
"@typescript-eslint/no-explicit-any": "error",
32+
"@typescript-eslint/no-unused-vars": "error",
33+
"no-return-await": "off",
34+
"@typescript-eslint/return-await": "warn",
35+
"@typescript-eslint/promise-function-async": [
36+
"error",
37+
{
38+
"allowedPromiseNames": ["Thenable"],
39+
"checkArrowFunctions": true,
40+
"checkFunctionDeclarations": true,
41+
"checkFunctionExpressions": true,
42+
"checkMethodDeclarations": true
43+
}
44+
],
45+
"complexity": "off",
46+
"eqeqeq": ["error", "always"],
47+
"quotes": [
48+
"error",
49+
"single",
50+
{ "avoidEscape": true, "allowTemplateLiterals": true }
51+
]
52+
}
53+
}

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn.lock -diff

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: Heroic-Games-Launcher
4+
patreon: heroicgameslauncher
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: heroicgames
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Bug report
2+
description: "Things aren't working right? Create a bug report to let us know!"
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |-
7+
## Important: If this is a game issue, check out [our Discord server](https://discord.gg/rHJ2uqdquK) and [our Wiki](https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/wiki/Troubleshooting) to get help instead!
8+
Examples for valid issues: "Heroic doesn't open", "This button is out of place", "Heroic closes unexpectedly", "Installs get interrupted"
9+
- type: textarea
10+
id: bug_description
11+
attributes:
12+
label: Describe the bug
13+
description: 'A clear and concise description of what the bug is.'
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: heroic_log
18+
attributes:
19+
label: Add logs
20+
description: 'Open up the "Settings" tab -> "Log" tab -> "Copy log content to clipboard" and paste it into here'
21+
render:
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: to_reproduce
26+
attributes:
27+
label: Steps to reproduce
28+
description: 'Steps to reproduce this behavior'
29+
value: |-
30+
1. Go to '...'
31+
2. Click on '...'
32+
3. Scroll down to '...'
33+
4. See error
34+
validations:
35+
required: true
36+
- type: textarea
37+
id: expected
38+
attributes:
39+
label: Expected behavior
40+
description: 'A clear and concise description of what you expected to happen.'
41+
validations:
42+
required: true
43+
- type: textarea
44+
id: screenshots
45+
attributes:
46+
label: Screenshots
47+
description: If applicable, add screenshots to help explain your problem.
48+
- type: textarea
49+
id: systeminfo
50+
attributes:
51+
label: System Information
52+
value: |-
53+
- OS [e. g. "Ubuntu"]:
54+
- Heroic Version [e. g. 2.1.1]:
55+
56+
validations:
57+
required: true
58+
- type: textarea
59+
id: additional_info
60+
attributes:
61+
label: Additional information
62+
description: Add any other context about the problem here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Feature request
2+
description: "Are we missing something? Open a feature request and we'll get it implemented!"
3+
body:
4+
- type: textarea
5+
id: feature_problem
6+
attributes:
7+
label: Problem description
8+
description: 'If your feature request is related to a problem, describe it'
9+
placeholder: "I'm always frustrated when [...]"
10+
- type: textarea
11+
id: feature_description
12+
attributes:
13+
label: Feature description
14+
description: Describe the feature/solution you'd like
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: feature_alternatives
19+
attributes:
20+
label: Alternatives
21+
description: Describe alternatives you've considered
22+
- type: textarea
23+
id: additional_info
24+
attributes:
25+
label: Additional information
26+
description: Add any other context about the feature here.

.github/pull_request_template.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<--- Put the description here --->
2+
3+
---
4+
5+
Use the following Checklist if you have changed something on the Backend or Frontend:
6+
7+
- [ ] Tested the feature and it's working on a current and clean install.
8+
- [ ] Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
9+
- [ ] Created / Updated Tests (If necessary)
10+
- [ ] Created / Updated documentation (If necessary)

.github/workflows/build-prs-linux.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build Linux
2+
3+
on:
4+
pull_request:
5+
branches: [main, beta]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Build Test Files'
10+
required: false
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository.
17+
uses: actions/checkout@v2
18+
- name: Setup NodeJS
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '16'
22+
- name: Install modules.
23+
run: yarn
24+
- name: Build artifacts.
25+
run: yarn dist:linux appimage --publish=never
26+
- name: Upload AppImage.
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: linux-appimage
30+
path: dist/Heroic-*.AppImage
31+
retention-days: 14

.github/workflows/build-prs-mac.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build macOS
2+
3+
on:
4+
pull_request:
5+
branches: [main, beta]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Build Test Files'
10+
required: false
11+
12+
jobs:
13+
build:
14+
runs-on: macos-11
15+
steps:
16+
- name: Checkout repository.
17+
uses: actions/checkout@v2
18+
- name: Setup NodeJS
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '16'
22+
- name: Install modules.
23+
run: yarn
24+
- name: Build artifacts.
25+
run: yarn dist:mac --publish=never
26+
- name: Upload DMG.
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: mac-dmg
30+
path: dist/Heroic*.dmg
31+
retention-days: 14
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build Windows
2+
3+
on:
4+
pull_request:
5+
branches: [main, beta]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Build Test Files'
10+
required: false
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
steps:
16+
- name: Checkout repository.
17+
uses: actions/checkout@v2
18+
- name: Setup NodeJS
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '16'
22+
- name: Install modules.
23+
run: npm i --legacy-peer-deps
24+
- name: Build artifacts.
25+
run: npm run dist:win portable
26+
- name: Upload EXE.
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: win-portable
30+
path: dist/Heroic*.exe
31+
retention-days: 14

.github/workflows/build.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main, beta]
6+
tags:
7+
- '!v*'
8+
workflow_dispatch:
9+
10+
jobs:
11+
build_windows:
12+
runs-on: windows-latest
13+
steps:
14+
- name: Checkout repository.
15+
uses: actions/checkout@v2
16+
- name: Setup NodeJS
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
- name: Install modules.
21+
run: npm i --legacy-peer-deps
22+
- name: Build artifacts.
23+
run: npm run dist:win portable
24+
- name: Upload EXE.
25+
uses: actions/upload-artifact@v2
26+
with:
27+
name: win-portable
28+
path: dist/Heroic*.exe
29+
retention-days: 14
30+
build_linux:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout repository.
34+
uses: actions/checkout@v2
35+
- name: Setup NodeJS
36+
uses: actions/setup-node@v2
37+
with:
38+
node-version: '16'
39+
- name: Install modules.
40+
run: yarn
41+
- name: Build artifacts.
42+
run: yarn dist:linux appimage --publish=never
43+
- name: Upload AppImage.
44+
uses: actions/upload-artifact@v2
45+
with:
46+
name: linux-appimage
47+
path: dist/Heroic-*.AppImage
48+
retention-days: 14
49+
build_mac:
50+
runs-on: macos-11
51+
steps:
52+
- name: Checkout repository.
53+
uses: actions/checkout@v2
54+
- name: Setup NodeJS
55+
uses: actions/setup-node@v2
56+
with:
57+
node-version: '16'
58+
- name: Install modules.
59+
run: yarn
60+
- name: Build artifacts.
61+
run: yarn dist:mac --publish=never
62+
- name: Upload DMG.
63+
uses: actions/upload-artifact@v2
64+
with:
65+
name: mac-dmg
66+
path: dist/Heroic*.dmg
67+
retention-days: 14
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Draft Release Linux
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
draft-releases:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- run: sudo apt-get install --no-install-recommends -y libarchive-tools libopenjp2-tools rpm
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: '16'
18+
- run: npm install --legacy-peer-deps
19+
- run: npm run release:linux
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}

0 commit comments

Comments
 (0)