Skip to content

Commit 21ca0fd

Browse files
committed
feat: Reworked app structure, optimized performance & added more languages
1 parent 037120e commit 21ca0fd

121 files changed

Lines changed: 16477 additions & 6136 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1 @@
1-
# These are supported funding model platforms
2-
3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
61
ko_fi: MaximeriX
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-
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12-
polar: # Replace with a single Polar username
13-
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14-
thanks_dev: # Replace with a single thanks.dev username
15-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/build.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Build App
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/workflows/**"
7+
- "App/**"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
name: Build Windows executable
15+
runs-on: windows-latest
16+
17+
defaults:
18+
run:
19+
working-directory: App
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: npm
30+
cache-dependency-path: App/package-lock.json
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Build app
36+
run: npm run build
37+
38+
- name: Find executable
39+
id: exe
40+
shell: pwsh
41+
run: |
42+
$exe = Get-ChildItem -Path "build/dist" -Filter "*.exe" -File |
43+
Sort-Object LastWriteTime -Descending |
44+
Select-Object -First 1
45+
46+
if (-not $exe) {
47+
throw "No .exe file found in App/build/dist"
48+
}
49+
50+
"path=$($exe.FullName)" >> $env:GITHUB_OUTPUT
51+
"name=$($exe.Name)" >> $env:GITHUB_OUTPUT
52+
53+
- name: Read app version
54+
id: app
55+
shell: pwsh
56+
run: |
57+
$version = node -p "require('./package.json').version"
58+
"version=$version" >> $env:GITHUB_OUTPUT
59+
60+
- name: Create draft release
61+
shell: pwsh
62+
env:
63+
GH_TOKEN: ${{ github.token }}
64+
EXE_PATH: ${{ steps.exe.outputs.path }}
65+
APP_VERSION: ${{ steps.app.outputs.version }}
66+
COMMIT_SHA: ${{ github.sha }}
67+
run: |
68+
$tag = "v$env:APP_VERSION"
69+
if (gh release view $tag --repo $env:GITHUB_REPOSITORY *> $null) {
70+
$tag = "v$env:APP_VERSION-beta"
71+
}
72+
73+
$title = "Simple Office Installer v$env:APP_VERSION"
74+
$notes = "Draft build from commit $env:COMMIT_SHA."
75+
76+
gh release create $tag $env:EXE_PATH `
77+
--draft `
78+
--target $env:COMMIT_SHA `
79+
--title $title `
80+
--notes $notes `
81+
--repo $env:GITHUB_REPOSITORY

.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
logs/
2+
*.log
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
pnpm-debug.log*
7+
lerna-debug.log*
8+
9+
pids/
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
coverage/
15+
.nyc_output/
16+
lib-cov/
17+
*.lcov
18+
19+
node_modules/
20+
21+
.pnpm-store/
22+
.yarn/cache/
23+
.yarn/unplugged/
24+
.yarn/build-state.yml
25+
.yarn/install-state.gz
26+
27+
dist/
28+
build/
29+
out/
30+
release/
31+
32+
*.asar
33+
*.asar.unpacked
34+
*.blockmap
35+
36+
tmp/
37+
temp/
38+
Temp/
39+
.cache/
40+
41+
.DS_Store
42+
.DS_Store?
43+
.AppleDouble
44+
.LSOverride
45+
Icon?
46+
Thumbs.db
47+
ehthumbs.db
48+
Desktop.ini
49+
50+
.vscode/
51+
.idea/

0 commit comments

Comments
 (0)