mirror of
https://github.com/bitwarden/browser
synced 2024-12-23 00:25:04 +01:00
55874b72bf
* [PM-7846] Implement a rust based native messaging proxy and IPC system
* Only build desktop_proxy
* Bundle the desktop_proxy file
* Make sys deps optional for the proxy
* Restore accidentally deleted after-sign
* Update native cache to contain dist folder
* Add some test logging
* Native module cache seems very aggressive
* Fix invalid directory
* Fix debug print
* Remove cache force
* Remove cache debug code
* Only log to file in debug builds
* Place the binary in the correct place for mac and make sure it's signed
* Fix platform paths
* Test unsigned appx
* Revert "Test unsigned appx"
This reverts commit e47535440a
.
* Fix comment
* Remove logs
* Use debug builds in native code, and test private path on MacOS
* Add connected message
* Update IPC API comments
* Update linux to also use XDG_ dir
* Update main.rs comment
* Improve docs and split some tasks spawned into separate functions
* Update send docs and return number of elements sent
* Mark `listen` as async to ensure it runs in a tokio context, handle errors better
* Add log on client channel closed
* Move binary to MacOS folder, and sign it manually so it gets the correct entitlements
* Fix some review comments
* Run prettier
* Added missing zbus_polkit dep
* Extract magic number and increase it to match spec
* Comment fix
* Use Napi object, combine nativeBinding export, always log to file
* Missed one comment
* Remove unnecessary generics
* Correct comment
* Select only codesigning identities
* Filter certificates
* Also add local dev cert
* Remove log
* Fix package ID
* debug_assert won't run the pop() in release mode
* Better error messages
* Fix review comments
* Remove unnecessary comment
* Update napi generated TS file
* Temporary fix for DDG
262 lines
6.2 KiB
JSON
262 lines
6.2 KiB
JSON
{
|
|
"extraMetadata": {
|
|
"name": "bitwarden"
|
|
},
|
|
"productName": "Bitwarden",
|
|
"appId": "com.bitwarden.desktop",
|
|
"buildDependenciesFromSource": true,
|
|
"copyright": "Copyright © 2015-2024 Bitwarden Inc.",
|
|
"directories": {
|
|
"buildResources": "resources",
|
|
"output": "dist",
|
|
"app": "build"
|
|
},
|
|
"afterSign": "scripts/after-sign.js",
|
|
"afterPack": "scripts/after-pack.js",
|
|
"asarUnpack": ["**/*.node"],
|
|
"files": [
|
|
"**/*",
|
|
"!**/node_modules/@bitwarden/desktop-napi/**/*",
|
|
"**/node_modules/@bitwarden/desktop-napi/index.js",
|
|
"**/node_modules/@bitwarden/desktop-napi/desktop_napi.${platform}-${arch}*.node",
|
|
|
|
"!**/node_modules/argon2/**/*",
|
|
"**/node_modules/argon2/argon2.cjs",
|
|
"**/node_modules/argon2/package.json",
|
|
"**/node_modules/argon2/build/Release/argon2.node"
|
|
],
|
|
"electronVersion": "32.0.1",
|
|
"generateUpdatesFilesForAllChannels": true,
|
|
"publish": {
|
|
"provider": "generic",
|
|
"url": "https://artifacts.bitwarden.com/desktop"
|
|
},
|
|
"mac": {
|
|
"electronUpdaterCompatibility": ">=0.0.1",
|
|
"category": "public.app-category.productivity",
|
|
"darkModeSupport": true,
|
|
"gatekeeperAssess": false,
|
|
"hardenedRuntime": true,
|
|
"entitlements": "resources/entitlements.mac.plist",
|
|
"entitlementsInherit": "resources/entitlements.mac.plist",
|
|
"extendInfo": {
|
|
"ITSAppUsesNonExemptEncryption": false,
|
|
"CFBundleLocalizations": [
|
|
"en",
|
|
"cs",
|
|
"da",
|
|
"de",
|
|
"es",
|
|
"et",
|
|
"fi",
|
|
"fr",
|
|
"hr",
|
|
"hu",
|
|
"id",
|
|
"it",
|
|
"ja",
|
|
"nb",
|
|
"nl",
|
|
"pl",
|
|
"pt-BR",
|
|
"pt-PT",
|
|
"ro",
|
|
"ru",
|
|
"sk",
|
|
"sv",
|
|
"tr",
|
|
"uk",
|
|
"vi",
|
|
"zh-Hans",
|
|
"zh-Hant"
|
|
],
|
|
"CFBundleDevelopmentRegion": "en"
|
|
},
|
|
"singleArchFiles": "node_modules/@bitwarden/desktop-napi/desktop_napi.darwin-*.node",
|
|
"extraFiles": [
|
|
{
|
|
"from": "desktop_native/dist/desktop_proxy.${platform}-${arch}",
|
|
"to": "MacOS/desktop_proxy"
|
|
}
|
|
],
|
|
"signIgnore": ["MacOS/desktop_proxy"],
|
|
"target": ["dmg", "zip"]
|
|
},
|
|
"win": {
|
|
"electronUpdaterCompatibility": ">=0.0.1",
|
|
"target": ["portable", "nsis-web", "appx"],
|
|
"sign": "./sign.js",
|
|
"extraResources": [
|
|
{
|
|
"from": "../../node_modules/regedit/vbs",
|
|
"to": "regedit/vbs",
|
|
"filter": ["**/*"]
|
|
}
|
|
],
|
|
"extraFiles": [
|
|
{
|
|
"from": "desktop_native/dist/desktop_proxy.${platform}-${arch}.exe",
|
|
"to": "desktop_proxy.exe"
|
|
}
|
|
]
|
|
},
|
|
"linux": {
|
|
"category": "Utility",
|
|
"synopsis": "A secure and free password manager for all of your devices.",
|
|
"extraFiles": [
|
|
{
|
|
"from": "desktop_native/dist/desktop_proxy.${platform}-${arch}",
|
|
"to": "desktop_proxy"
|
|
}
|
|
],
|
|
"target": ["deb", "freebsd", "rpm", "AppImage", "snap"],
|
|
"desktop": {
|
|
"Name": "Bitwarden",
|
|
"Type": "Application",
|
|
"GenericName": "Password Manager"
|
|
}
|
|
},
|
|
"dmg": {
|
|
"icon": "dmg.icns",
|
|
"sign": false,
|
|
"contents": [
|
|
{
|
|
"x": 150,
|
|
"y": 185,
|
|
"type": "file"
|
|
},
|
|
{
|
|
"x": 390,
|
|
"y": 180,
|
|
"type": "link",
|
|
"path": "/Applications"
|
|
}
|
|
],
|
|
"window": {
|
|
"width": 540,
|
|
"height": 380
|
|
}
|
|
},
|
|
"mas": {
|
|
"entitlements": "resources/entitlements.mas.plist",
|
|
"entitlementsInherit": "resources/entitlements.mas.inherit.plist",
|
|
"entitlementsLoginHelper": "resources/entitlements.mas.loginhelper.plist",
|
|
"hardenedRuntime": false,
|
|
"extendInfo": {
|
|
"LSMinimumSystemVersion": "12",
|
|
"ElectronTeamID": "LTZ2PFU5D6"
|
|
}
|
|
},
|
|
"nsisWeb": {
|
|
"oneClick": false,
|
|
"perMachine": false,
|
|
"allowToChangeInstallationDirectory": false,
|
|
"artifactName": "${productName}-Installer-${version}.${ext}",
|
|
"uninstallDisplayName": "${productName}",
|
|
"deleteAppDataOnUninstall": true,
|
|
"include": "installer.nsh"
|
|
},
|
|
"portable": {
|
|
"artifactName": "${productName}-Portable-${version}.${ext}"
|
|
},
|
|
"appx": {
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}",
|
|
"backgroundColor": "#175DDC",
|
|
"applicationId": "bitwardendesktop",
|
|
"identityName": "8bitSolutionsLLC.bitwardendesktop",
|
|
"publisher": "CN=14D52771-DE3C-4886-B8BF-825BA7690418",
|
|
"publisherDisplayName": "8bit Solutions LLC",
|
|
"languages": [
|
|
"en-US",
|
|
"af",
|
|
"ar",
|
|
"az-latn",
|
|
"be",
|
|
"bg",
|
|
"bn",
|
|
"bs",
|
|
"ca",
|
|
"cs",
|
|
"cy",
|
|
"da",
|
|
"de",
|
|
"el",
|
|
"en-gb",
|
|
"en-in",
|
|
"es",
|
|
"et",
|
|
"eu",
|
|
"fa",
|
|
"fi",
|
|
"fil",
|
|
"fr",
|
|
"gl",
|
|
"he",
|
|
"hi",
|
|
"hr",
|
|
"hu",
|
|
"id",
|
|
"it",
|
|
"ja",
|
|
"ka",
|
|
"km",
|
|
"kn",
|
|
"ko",
|
|
"lt",
|
|
"lv",
|
|
"ml",
|
|
"mr",
|
|
"nb",
|
|
"ne",
|
|
"nl",
|
|
"nn",
|
|
"or",
|
|
"pl",
|
|
"pt-br",
|
|
"pt-pt",
|
|
"ro",
|
|
"ru",
|
|
"si",
|
|
"sk",
|
|
"sl",
|
|
"sr-cyrl",
|
|
"sv",
|
|
"te",
|
|
"th",
|
|
"tr",
|
|
"uk",
|
|
"vi",
|
|
"zh-cn",
|
|
"zh-tw"
|
|
]
|
|
},
|
|
"deb": {
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}",
|
|
"depends": ["libnotify4", "libxtst6", "libnss3", "libsecret-1-0", "libxss1"]
|
|
},
|
|
"appImage": {
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
|
},
|
|
"rpm": {
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
|
},
|
|
"freebsd": {
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
|
},
|
|
"snap": {
|
|
"summary": "Bitwarden is a secure and free password manager for all of your devices.",
|
|
"description": "**Installation**\nBitwarden requires access to the `password-manager-service`. Please enable it through permissions or by running `sudo snap connect bitwarden:password-manager-service` after installation. See https://btwrdn.com/install-snap for details.",
|
|
"autoStart": true,
|
|
"base": "core22",
|
|
"confinement": "strict",
|
|
"plugs": ["default", "network", "network-bind", "password-manager-service"],
|
|
"stagePackages": ["default"]
|
|
},
|
|
"protocols": [
|
|
{
|
|
"name": "Bitwarden",
|
|
"schemes": ["bitwarden"]
|
|
}
|
|
]
|
|
}
|