Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

feat: add icon, sidebar image to nsis setup for windows (#1528)

Divanshu Grover4b0be912ce03
diff --git a/screenpipe-app-tauri/src-tauri/assets/nsis-header.bmp b/screenpipe-app-tauri/src-tauri/assets/nsis-header.bmp
new file mode 100644
index 000000000..1841f2840
Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/assets/nsis-header.bmp differ
diff --git a/screenpipe-app-tauri/src-tauri/assets/nsis-sidebar.bmp b/screenpipe-app-tauri/src-tauri/assets/nsis-sidebar.bmp
new file mode 100644
index 000000000..fd4d266ca
Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/assets/nsis-sidebar.bmp differ
diff --git a/screenpipe-app-tauri/src-tauri/gen/schemas/windows-schema.json b/screenpipe-app-tauri/src-tauri/gen/schemas/windows-schema.json
index c78f62995..9bf4e459c 100644
--- a/screenpipe-app-tauri/src-tauri/gen/schemas/windows-schema.json
+++ b/screenpipe-app-tauri/src-tauri/gen/schemas/windows-schema.json
@@ -1753,6 +1753,166 @@
}
}
},
+ {
+ "if": {
+ "properties": {
+ "identifier": {
+ "anyOf": [
+ {
+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",
+ "type": "string",
+ "const": "opener:default"
+ },
+ {
+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",
+ "type": "string",
+ "const": "opener:allow-default-urls"
+ },
+ {
+ "description": "Enables the open_path command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:allow-open-path"
+ },
+ {
+ "description": "Enables the open_url command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:allow-open-url"
+ },
+ {
+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:allow-reveal-item-in-dir"
+ },
+ {
+ "description": "Denies the open_path command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:deny-open-path"
+ },
+ {
+ "description": "Denies the open_url command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:deny-open-url"
+ },
+ {
+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:deny-reveal-item-in-dir"
+ }
+ ]
+ }
+ }
+ },
+ "then": {
+ "properties": {
+ "allow": {
+ "items": {
+ "title": "OpenerScopeEntry",
+ "description": "Opener scope entry.",
+ "anyOf": [
+ {
+ "type": "object",
+ "required": [
+ "url"
+ ],
+ "properties": {
+ "app": {
+ "description": "An application to open this url with, for example: firefox.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Application"
+ }
+ ]
+ },
+ "url": {
+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",
+ "type": "string"
+ }
+ }
+ },
+ {
+ "type": "object",
+ "required": [
+ "path"
+ ],
+ "properties": {
+ "app": {
+ "description": "An application to open this path with, for example: xdg-open.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Application"
+ }
+ ]
+ },
+ "path": {
+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
+ "type": "string"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "deny": {
+ "items": {
+ "title": "OpenerScopeEntry",
+ "description": "Opener scope entry.",
+ "anyOf": [
+ {
+ "type": "object",
+ "required": [
+ "url"
+ ],
+ "properties": {
+ "app": {
+ "description": "An application to open this url with, for example: firefox.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Application"
+ }
+ ]
+ },
+ "url": {
+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",
+ "type": "string"
+ }
+ }
+ },
+ {
+ "type": "object",
+ "required": [
+ "path"
+ ],
+ "properties": {
+ "app": {
+ "description": "An application to open this path with, for example: xdg-open.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Application"
+ }
+ ]
+ },
+ "path": {
+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
+ "type": "string"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "properties": {
+ "identifier": {
+ "description": "Identifier of the permission or permission set.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Identifier"
+ }
+ ]
+ }
+ }
+ },
{
"if": {
"properties": {
@@ -5319,6 +5479,46 @@
"type": "string",
"const": "notification:deny-show"
},
+ {
+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",
+ "type": "string",
+ "const": "opener:default"
+ },
+ {
+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",
+ "type": "string",
+ "const": "opener:allow-default-urls"
+ },
+ {
+ "description": "Enables the open_path command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:allow-open-path"
+ },
+ {
+ "description": "Enables the open_url command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:allow-open-url"
+ },
+ {
+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:allow-reveal-item-in-dir"
+ },
+ {
+ "description": "Denies the open_path command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:deny-open-path"
+ },
+ {
+ "description": "Denies the open_url command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:deny-open-url"
+ },
+ {
+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",
+ "type": "string",
+ "const": "opener:deny-reveal-item-in-dir"
+ },
{
"description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",
"type": "string",
@@ -5429,6 +5629,41 @@
"type": "string",
"const": "process:deny-restart"
},
+ {
+ "description": "Allows all required permissions (envelope, breadcrumb)",
+ "type": "string",
+ "const": "sentry:default"
+ },
+ {
+ "description": "Enables the breadcrumb command.",
+ "type": "string",
+ "const": "sentry:allow-breadcrumb"
+ },
+ {
+ "description": "Enables the envelope command.",
+ "type": "string",
+ "const": "sentry:allow-envelope"
+ },
+ {
+ "description": "Enables the event command without any pre-configured scope.",
+ "type": "string",
+ "const": "sentry:allow-event"
+ },
+ {
+ "description": "Denies the breadcrumb command.",
+ "type": "string",
+ "const": "sentry:deny-breadcrumb"
+ },
+ {
+ "description": "Denies the envelope command.",
+ "type": "string",
+ "const": "sentry:deny-envelope"
+ },
+ {
+ "description": "Denies the event command without any pre-configured scope.",
+ "type": "string",
+ "const": "sentry:deny-event"
+ },
{
"description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"type": "string",
@@ -5770,6 +6005,23 @@
}
]
},
+ "Application": {
+ "description": "Opener scope application.",
+ "anyOf": [
+ {
+ "description": "Open in default application.",
+ "type": "null"
+ },
+ {
+ "description": "If true, allow open with any application.",
+ "type": "boolean"
+ },
+ {
+ "description": "Allow specific application to open with.",
+ "type": "string"
+ }
+ ]
+ },
"ShellScopeEntryAllowedArg": {
"description": "A command argument allowed to be executed by the webview API.",
"anyOf": [
@@ -5815,4 +6067,4 @@
]
}
}
-}
+}
\ No newline at end of file
diff --git a/screenpipe-app-tauri/src-tauri/tauri.conf.json b/screenpipe-app-tauri/src-tauri/tauri.conf.json
index 25f7bd06f..d19ddb014 100644
--- a/screenpipe-app-tauri/src-tauri/tauri.conf.json
+++ b/screenpipe-app-tauri/src-tauri/tauri.conf.json
@@ -1,5 +1,5 @@
{
- "$schema": "../node_modules/@tauri-apps/cli/schema.json",
+ "$schema": "https://schema.tauri.app/config/2",
"productName": "screenpipe",
"identifier": "screenpi.pe",
"build": {
@@ -13,7 +13,12 @@
"active": true,
"category": "DeveloperTool",
"copyright": "",
- "targets": ["app", "dmg", "appimage", "nsis"],
+ "targets": [
+ "app",
+ "dmg",
+ "appimage",
+ "nsis"
+ ],
"externalBin": [],
"icon": [
"icons/32x32.png",
@@ -27,7 +32,9 @@
"icons/screenpipe-logo-tray-failed.png",
"icons/screenpipe-logo-tray-black.png"
],
- "resources": ["assets/*"]
+ "resources": [
+ "assets/*"
+ ]
},
"plugins": {
"updater": {
@@ -40,36 +47,52 @@
},
"deep-link": {
"desktop": {
- "schemes": ["screenpipe"]
+ "schemes": [
+ "screenpipe"
+ ]
},
"mobile": [
{
"host": "screenpi.pe",
- "pathPrefix": ["/auth"]
+ "pathPrefix": [
+ "/auth"
+ ]
},
{
"host": "screenpi.pe",
- "pathPrefix": ["/stripe-connect"]
+ "pathPrefix": [
+ "/stripe-connect"
+ ]
},
{
"host": "screenpi.pe",
- "pathPrefix": ["/purchase-successful"]
+ "pathPrefix": [
+ "/purchase-successful"
+ ]
},
{
"host": "screenpi.pe",
- "pathPrefix": ["/settings"]
+ "pathPrefix": [
+ "/settings"
+ ]
},
{
"host": "screenpi.pe",
- "pathPrefix": ["/changelog"]
+ "pathPrefix": [
+ "/changelog"
+ ]
},
{
"host": "screenpi.pe",
- "pathPrefix": ["/onboarding"]
+ "pathPrefix": [
+ "/onboarding"
+ ]
},
{
"host": "screenpi.pe",
- "pathPrefix": ["/status"]
+ "pathPrefix": [
+ "/status"
+ ]
}
]
}
@@ -91,10 +114,12 @@
"security": {
"assetProtocol": {
"enable": true,
- "scope": ["$APPDATA/**"]
+ "scope": [
+ "$APPDATA/**"
+ ]
},
"csp": null
},
"macOSPrivateApi": true
}
-}
+}
\ No newline at end of file
diff --git a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
index eb94b854b..76c60f619 100644
--- a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
+++ b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
@@ -1,5 +1,12 @@
{
"bundle": {
+ "windows": {
+ "nsis": {
+ "headerImage": "assets/nsis-header.bmp",
+ "sidebarImage": "assets/nsis-sidebar.bmp",
+ "installerIcon": "icons/icon.ico"
+ }
+ },
"externalBin": [
"screenpipe",
"bun"
@@ -17,7 +24,7 @@
"onnxruntime*\\lib\\onnxruntime_providers_shared.dll": "./",
"mkl\\*.dll": "./",
"vcredist\\*.dll": "./",
- "assets/*" : "./assets/"
+ "assets/*": "./assets/"
}
}
-}
+}
\ No newline at end of file