Skip to content

Commit 74df730

Browse files
authored
Merge branch 'sigmaSd:master' into master
2 parents 2990e08 + dc09bdb commit 74df730

File tree

105 files changed

+4067
-19449
lines changed

Some content is hidden

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

105 files changed

+4067
-19449
lines changed

.github/workflows/deno.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ jobs:
2323

2424
steps:
2525
- name: Setup repo
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727

2828
- name: Setup Deno
29-
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
29+
uses: denoland/setup-deno@v2
3030
with:
31-
deno-version: v1.x
31+
deno-version: latest
3232

3333
- name: Verify formatting
34-
run: deno fmt --ignore=src/locales/,flatpak --check
34+
run: deno fmt --check
3535

3636
- name: Run linter
3737
run: deno lint
3838

3939
- name: Run check
40-
run: find src -name "*ts" -exec deno check {} \;
40+
run: deno check --unstable-raw-imports

.github/workflows/nightly.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Nightly Release
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Deno
20+
uses: denoland/setup-deno@v2
21+
with:
22+
deno-version: latest
23+
24+
- name: Add localStorage polyfill import
25+
run: |
26+
sed -i '2i // This for stimulator compiled with deno compile\nimport "jsr:@sigma/deno-compile-extra@0.12.1/localStoragePolyfill";' src/main.ts
27+
28+
- name: Verify the edit
29+
run: head -n 5 src/main.ts
30+
31+
- name: Compile for Linux x86_64
32+
run: |
33+
deno compile --unstable-raw-imports --output stimulator-linux-x86_64 -A src/main.ts
34+
35+
- name: Compile for Linux aarch64
36+
run: |
37+
deno compile --unstable-raw-imports --target aarch64-unknown-linux-gnu --output stimulator-linux-aarch64 -A src/main.ts
38+
39+
- name: Get current date and time
40+
id: date
41+
run: echo "datetime=$(date +'%Y-%m-%d-%H%M%S')" >> $GITHUB_OUTPUT
42+
43+
- name: Get short SHA
44+
id: sha
45+
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
46+
47+
- name: Create nightly release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
TAG_NAME="nightly-${{ steps.date.outputs.datetime }}-${{ steps.sha.outputs.sha }}"
52+
53+
cat > release_notes.md << 'EOF'
54+
Automated nightly build from commit ${{ steps.sha.outputs.sha }}
55+
56+
57+
Built: ${{ steps.date.outputs.datetime }}
58+
Commit: ${{ github.sha }}
59+
60+
## Commit Message
61+
${{ github.event.head_commit.message }}
62+
63+
## Installation
64+
65+
### x86_64 (Intel/AMD)
66+
1. Download `stimulator-linux-x86_64`
67+
2. Make it executable: `chmod +x stimulator-linux-x86_64`
68+
3. Run: `./stimulator-linux-x86_64`
69+
70+
### aarch64 (ARM64)
71+
1. Download `stimulator-linux-aarch64`
72+
2. Make it executable: `chmod +x stimulator-linux-aarch64`
73+
3. Run: `./stimulator-linux-aarch64`
74+
EOF
75+
76+
77+
gh release create "$TAG_NAME" \
78+
--title "Nightly Build - (${{ steps.date.outputs.datetime }}) ${{ steps.sha.outputs.sha }}" \
79+
--notes-file release_notes.md \
80+
stimulator-linux-x86_64 \
81+
stimulator-linux-aarch64

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ flatpak/build-dir
33
flatpak/.flatpak-builder
44
.helix
55
.vscode
6+
.zed
67
node_modules

README.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,26 @@ For disabling screen blanking/locking, it uses
4747

4848
## Translations
4949

50-
| Language | Translated (%) |
51-
| ---------- | -------------- |
52-
| Arabic | 100.00 |
53-
| English | 100.00 |
54-
| Estonian | 100.00 |
55-
| French | 100.00 |
56-
| Hindi | 96.88 |
57-
| Italian | 100.00 |
58-
| Japanese | 100.00 |
59-
| Dutch | 100.00 |
60-
| Portuguese | 100.00 |
61-
| Turkish | 100.00 |
62-
63-
- Translations with less than 70% completion will not be embedded into the app
50+
| Language | Translated (%) |
51+
| ------------- | -------------- |
52+
| Arabic | 100.00 |
53+
| Danish | 66.67 |
54+
| German | 66.67 |
55+
| English | 100.00 |
56+
| Spanish | 66.67 |
57+
| Estonian | 66.67 |
58+
| French | 100.00 |
59+
| Irish | 100.00 |
60+
| Hindi | 66.67 |
61+
| Italian | 95.83 |
62+
| Japanese | 66.67 |
63+
| Dutch | 66.67 |
64+
| Portuguese_BR | 66.67 |
65+
| Russian | 100.00 |
66+
| Serbian_Cyrl | 100.00 |
67+
| Serbian_Latn | 100.00 |
68+
| Turkish | 100.00 |
69+
| Ukrainian | 66.67 |
70+
| Chinese_CN | 66.67 |
71+
72+
- Translations with less than 60% completion will not be embedded into the app

biome.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

deno.jsonc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"vendor": true,
3-
// disable the lock file because otherwise deno will fail because we're not caching the npm dependencies
4-
// the npm dependencies are not needed since we only use them in scripts for now
5-
"lock": false,
2+
// important don't remove this line, its needed for the flatpak buil to make it true
3+
"vendor": false,
64
"imports": {
7-
// "deno-gtk-py": "../deno-gtk-py/mod.ts",
8-
"deno-gtk-py": "jsr:@sigma/gtk-py@0.4.17",
9-
"i18next": "https://deno.land/x/i18next@v23.7.11/index.js",
10-
"i18next_fs": "https://deno.land/x/i18next_fs_backend@v2.3.1/index.js"
11-
}
5+
"deno-gtk-py": "jsr:@sigma/gtk-py@0.11.0",
6+
"i18next": "https://deno.land/x/i18next@v25.0.0/index.js",
7+
"i18next_fs": "https://deno.land/x/i18next_fs_backend@v2.6.0/index.js"
8+
},
9+
"exclude": [
10+
"src/main.css",
11+
"distro"
12+
]
1213
}

0 commit comments

Comments
 (0)