Skip to content

Commit

Permalink
- fix: spotlight window on prod builds (#470)
Browse files Browse the repository at this point in the history
* - refactor: permissions per window

* - fix: vite entrypoint

* - cicd: version bump
  • Loading branch information
agallardol authored Oct 1, 2024
1 parent 2ecd6c3 commit 22eea30
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"identifier": "migrated",
"identifier": "main",
"description": "permissions that were migrated from v1",
"local": true,
"windows": [
Expand All @@ -8,7 +8,6 @@
],
"permissions": [
"core:default",
"core:webview:allow-create-webview-window",
"dialog:allow-save",
"fs:allow-download-write",
"shell:allow-open",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"identifier": "shinkai-node-manager",
"description": "permissions that were migrated from v1",
"local": true,
"windows": [
"shinkai-node-manager"
],
"permissions": [
"core:default",
"core:window:allow-start-dragging",
"log:default"
],
"commands.allow": [
"shinkai_node_is_running",
"shinkai_node_get_last_n_logs",
"shinkai_node_get_options",
"shinkai_node_set_options",
"shinkai_node_spawn",
"shinkai_node_kill",
"shinkai_node_remove_storage",
"shinkai_node_set_default_options",
"shinkai_node_get_ollama_api_url",
"shinkai_node_get_default_model"
]
}
15 changes: 15 additions & 0 deletions apps/shinkai-desktop/src-tauri/capabilities/spotlight.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"identifier": "spotlight",
"description": "permissions for spotlight window",
"local": true,
"windows": [
"spotlight"
],
"permissions": [
"core:event:allow-listen",
"core:event:allow-unlisten",
"core:event:allow-emit",
"log:default"
],
"commands.allow": []
}
1 change: 1 addition & 0 deletions apps/shinkai-desktop/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default defineConfig(() => ({
__dirname,
'src/windows/shinkai-node-manager/index.html',
),
spotlight: resolve(__dirname, 'src/windows/spotlight/index.html'),
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shinkai/source",
"version": "0.8.10",
"version": "0.8.11",
"license": "SEE LICENSE IN LICENSE",
"files": [
"LICENSE"
Expand Down

0 comments on commit 22eea30

Please sign in to comment.