Skip to content

Commit 149ecb9

Browse files
authored
Merge pull request RustedLessPass#28 from RustedLessPass/tauri-security
build(tauri): 👷 better tauri config
2 parents 162c5c6 + b0cf13c commit 149ecb9

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/publish-app.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ jobs:
100100
- uses: tauri-apps/tauri-action@v0
101101
env:
102102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
104+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
103105
with:
104106
tauriScript: cargo tauri
105107
releaseId: ${{ needs.create-release.outputs.release_id }}

src-tauri/tauri.conf.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,20 @@
1313
"windows": [
1414
{
1515
"title": "RustedLessPass",
16-
"width": 800,
17-
"height": 650
16+
"width": 501.302,
17+
"height": 638.628,
18+
"minWidth": 501.302,
19+
"minHeight": 638.628,
20+
"resizable": true
1821
}
1922
],
2023
"security": {
21-
"csp": null
24+
"csp": "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; font-src 'self' data:"
2225
}
2326
},
2427
"bundle": {
2528
"active": true,
29+
"category": "Utility",
2630
"targets": "all",
2731
"icon": [
2832
"../assets/favicon.png",

0 commit comments

Comments
 (0)