{
  "build": {
    "beforeDevCommand": "[[ -n \"$TARGET_ARCH\" ]] && ARCH=\"$TARGET_ARCH\" || ARCH=\"$(uname -m | sed 's/^arm64$/aarch64/')-apple-darwin\" && cargo build --target=$ARCH --manifest-path=./src-tauri/msghost/Cargo.toml && node makeFilesExecutable.js && npm run dev",
    "beforeBuildCommand": "[[ -n \"$TARGET_ARCH\" ]] && ARCH=\"$TARGET_ARCH\" || ARCH=\"$(uname -m | sed 's/^arm64$/aarch64/')-apple-darwin\" && cargo build --release --target=$ARCH --manifest-path=./src-tauri/msghost/Cargo.toml && node copyFiles.${ARCH}.js && node makeFilesExecutable.js && npm run build",
    "devUrl": "http://localhost:1422",
    "frontendDist": "../dist"
  },
  "identifier": "com.neosubhamoy.pytubepp.helper",
  "app": {
    "windows": [
      {
        "title": "PytubePP Helper",
        "width": 515,
        "height": 365,
        "useHttpsScheme": true
      }
    ],
    "security": {
      "csp": null,
      "capabilities": [
        "main-capability",
        "shell-scope",
        {
          "identifier": "fs-scope",
          "description": "allowed file system scopes",
          "permissions": [
            {
              "identifier": "fs:scope",
              "allow": [
                { "path": "$HOME/Library/LaunchAgents/" },
                { "path": "$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts/" },
                { "path": "$HOME/Library/Application Support/Chromium/NativeMessagingHosts/" },
                { "path": "$HOME/Library/Application Support/Mozilla/NativeMessagingHosts/" },
                { "path": "$HOME/Library/LaunchAgents/*" },
                { "path": "$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts/*" },
                { "path": "$HOME/Library/Application Support/Chromium/NativeMessagingHosts/*" },
                { "path": "$HOME/Library/Application Support/Mozilla/NativeMessagingHosts/*" },
                { "path": "$RESOURCE/pytubepp-helper-msghost.json" },
                { "path": "$RESOURCE/pytubepp-helper-msghost-moz.json" },
                { "path": "$RESOURCE/pytubepp-helper-msghost" },
                { "path": "$RESOURCE/pytubepp-helper-autostart.plist" },
                { "path": "$DOWNLOAD/pytubepp-extension-chrome" },
                { "path": "$DOWNLOAD/pytubepp-extension-chrome/*" },
                { "path": "$TEMP/com.neosubhamoy.pytubepp.helper" },
                { "path": "$TEMP/com.neosubhamoy.pytubepp.helper/*" }
              ]
            }
          ]
        }
      ]
    }
  },
  "bundle": {
    "active": true,
    "targets": ["app", "dmg"],
    "createUpdaterArtifacts": true,
    "licenseFile": "../LICENSE",
    "icon": [
      "icons/32x32.png",
      "icons/128x128.png",
      "icons/128x128@2x.png",
      "icons/icon.icns",
      "icons/icon.ico"
    ],
    "macOS": {
      "minimumSystemVersion": "10.13",
      "providerShortName": "neosubhamoy"
    },
    "resources": [
      "pytubepp-helper-msghost.json",
      "pytubepp-helper-msghost-moz.json",
      "pytubepp-helper-msghost",
      "pytubepp-helper-autostart.plist"
    ],
    "externalBin": [
      "binaries/sevenzip"
    ]
  }
}