Skip to content

Commit 19760ae

Browse files
feat: add support notification (#566)
* feat: add donate notification * fix(i18n): update support message formatting in multiple locales * feat: add notifications into App.vue * build: add electron-builder configuration for sponsored builds * chore: update * chore: dev * refactor: move to services * fix: remove development check from donate notification
1 parent 34724e9 commit 19760ae

File tree

25 files changed

+198
-30
lines changed

25 files changed

+198
-30
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
dist
22
build/main
33
build/renderer
4+
scripts/build-sponsored.sh
45

56
node_modules
67
.DS_Store

electron-builder.sponsored.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"appId": "io.masscode.app",
3+
"productName": "massCode",
4+
"directories": {
5+
"output": "dist"
6+
},
7+
"files": [
8+
"build/renderer/**/*",
9+
"build/main/**/*",
10+
"!build/**/*.map"
11+
],
12+
"artifactName": "${productName}-${version}-${arch}-sponsored.${ext}",
13+
"mac": {
14+
"target": "dmg",
15+
"icon": "build/icons/icon.icns",
16+
"entitlements": "build/entitlements.mac.plist",
17+
"category": "public.app-category.productivity",
18+
"hardenedRuntime": false,
19+
"identity": null
20+
},
21+
"win": {
22+
"target": ["nsis", "portable"],
23+
"icon": "build/icons/icon.ico"
24+
},
25+
"linux": {
26+
"target": ["AppImage", "snap"],
27+
"icon": "build/icons/icon.png"
28+
},
29+
"nsis": {
30+
"oneClick": false,
31+
"perMachine": false,
32+
"allowToChangeInstallationDirectory": true,
33+
"shortcutName": "massCode"
34+
},
35+
"protocols": [
36+
{
37+
"name": "massCode",
38+
"schemes": ["masscode"]
39+
}
40+
]
41+
}

src/main/i18n/locales/cs_CZ/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
},
4141
"special": {
42-
"supportMessage": "Ahoj, tady Anton 👋<br><br>\nDěkuji za používání massCode. Pokud vám tato aplikace přijde užitečná, prosím {{-tagStart}} přispějte {{-tagEnd}}. Bude mě to motivovat k dalšímu vývoji projektu.",
42+
"supportMessage": "Ahoj, tady Anton 👋<br><br>\nDěkuji za používání massCode. Pokud vám tato aplikace přijde užitečná, prosím {{-tagStart}}přispějte{{-tagEnd}}. Bude mě to motivovat k dalšímu vývoji projektu.",
4343
"unsponsored": "Bez sponzorů"
4444
},
4545
"update": {

src/main/i18n/locales/de_DE/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
},
4141
"special": {
42-
"supportMessage": "Hallo, hier ist Anton 👋<br><br>\nDanke, dass Sie massCode nutzen. Wenn Sie diese App nützlich finden, bitte {{-tagStart}} spenden {{-tagEnd}} Sie. Es wird mich inspirieren, die Entwicklung des Projekts fortzusetzen.",
42+
"supportMessage": "Hallo, hier ist Anton 👋<br><br>\nDanke, dass Sie massCode nutzen. Wenn Sie diese App nützlich finden, bitte {{-tagStart}}spenden{{-tagEnd}} Sie. Es wird mich inspirieren, die Entwicklung des Projekts fortzusetzen.",
4343
"unsponsored": "Nicht gesponsert"
4444
},
4545
"update": {

src/main/i18n/locales/el_GR/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
},
4141
"special": {
42-
"supportMessage": "Γεια σας, ο Anton εδώ 👋<br><br>\nΕυχαριστώ που χρησιμοποιείτε το massCode. Αν βρίσκετε χρήσιμη την εφαρμογή, παρακαλώ {{-tagStart}} κάντε μια δωρεά {{-tagEnd}}. Θα με εμπνεύσει να συνεχίσω την ανάπτυξη του project.",
42+
"supportMessage": "Γεια σας, ο Anton εδώ 👋<br><br>\nΕυχαριστώ που χρησιμοποιείτε το massCode. Αν βρίσκετε χρήσιμη την εφαρμογή, παρακαλώ {{-tagStart}}κάντε μια δωρεά{{-tagEnd}}. Θα με εμπνεύσει να συνεχίσω την ανάπτυξη του project.",
4343
"unsponsored": "Χωρίς χορηγία"
4444
},
4545
"update": {

src/main/i18n/locales/en_US/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"language": "To apply language changes, you need to reload the app."
4141
},
4242
"special": {
43-
"supportMessage": "Hi, Anton here 👋<br><br>\nThanks for using massCode. If you find this app useful, please {{-tagStart}} donate {{-tagEnd}}. It will inspire me to continue development on the project.",
43+
"supportMessage": "Hi, Anton here 👋<br><br>\nThanks for using massCode. If you find this app useful, please {{-tagStart}}donate{{-tagEnd}}. It will inspire me to continue development on the project.",
4444
"unsponsored": "Unsponsored"
4545
},
4646
"update": {

src/main/i18n/locales/es_ES/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
},
4141
"special": {
42-
"supportMessage": "Hola, soy Anton 👋<br><br>\nGracias por usar massCode. Si encuentras útil esta aplicación, por favor {{-tagStart}} dona {{-tagEnd}}. Me inspirará a continuar el desarrollo del proyecto.",
42+
"supportMessage": "Hola, soy Anton 👋<br><br>\nGracias por usar massCode. Si encuentras útil esta aplicación, por favor {{-tagStart}}dona{{-tagEnd}}. Me inspirará a continuar el desarrollo del proyecto.",
4343
"unsponsored": "Sin patrocinio"
4444
},
4545
"update": {

src/main/i18n/locales/fa_IR/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
},
4141
"special": {
42-
"supportMessage": "سلام، من Anton هستم 👋<br><br>\nممنون از استفاده شما از massCode. اگر این برنامه را مفید می‌دانید، لطفاً {{-tagStart}} حمایت مالی کنید {{-tagEnd}}. این کار به من انگیزه می‌دهد تا به توسعه پروژه ادامه دهم.",
42+
"supportMessage": "سلام، من Anton هستم 👋<br><br>\nممنون از استفاده شما از massCode. اگر این برنامه را مفید می‌دانید، لطفاً {{-tagStart}}حمایت مالی کنید{{-tagEnd}}. این کار به من انگیزه می‌دهد تا به توسعه پروژه ادامه دهم.",
4343
"unsponsored": "بدون حامی مالی"
4444
},
4545
"update": {

src/main/i18n/locales/fr_FR/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
},
4141
"special": {
42-
"supportMessage": "Salut, c'est Anton 👋<br><br>\nMerci d'utiliser massCode. Si vous trouvez cette application utile, veuillez {{-tagStart}} faire un don {{-tagEnd}}. Cela m'inspirera à continuer le développement du projet.",
42+
"supportMessage": "Salut, c'est Anton 👋<br><br>\nMerci d'utiliser massCode. Si vous trouvez cette application utile, veuillez {{-tagStart}}faire un don{{-tagEnd}}. Cela m'inspirera à continuer le développement du projet.",
4343
"unsponsored": "Non sponsorisé"
4444
},
4545
"update": {

src/main/i18n/locales/ja_JP/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
},
4141
"special": {
42-
"supportMessage": "こんにちは、Antonです 👋<br><br>\nmassCodeをご利用いただきありがとうございます。このアプリが役立つと感じられましたら、{{-tagStart}} 寄付 {{-tagEnd}}をご検討ください。プロジェクトの開発を継続する励みになります。",
42+
"supportMessage": "こんにちは、Antonです 👋<br><br>\nmassCodeをご利用いただきありがとうございます。このアプリが役立つと感じられましたら、{{-tagStart}}寄付{{-tagEnd}}をご検討ください。プロジェクトの開発を継続する励みになります。",
4343
"unsponsored": "未スポンサー"
4444
},
4545
"update": {

0 commit comments

Comments
 (0)