electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.61k stars 1.74k forks source link

Nested executables are expected to have provisioning profiles #8226

Closed p3x-robot closed 4 months ago

p3x-robot commented 4 months ago

I am stuck on thise code:

"Cannot be used with TestFlight because the executable “P3X-Redis-UI.app/Contents/Frameworks/P3X-Redis-UI Helper (GPU).app/Contents/MacOS/P3X-Redis-UI Helper (GPU)” in bundle “P3X-Redis-UI.app/Contents/Frameworks/P3X-Redis-UI Helper (GPU).app” is missing a provisioning profile but has an application identifier in its signature. Nested executables are expected to have provisioning profiles with application identifiers matching the identifier in the signature in order to be eligible for TestFlight." (90885)

"Cannot be used with TestFlight because the executable “P3X-Redis-UI.app/Contents/Frameworks/P3X-Redis-UI Helper (Plugin).app/Contents/MacOS/P3X-Redis-UI Helper (Plugin)” in bundle “P3X-Redis-UI.app/Contents/Frameworks/P3X-Redis-UI Helper (Plugin).app” is missing a provisioning profile but has an application identifier in its signature. Nested executables are expected to have provisioning profiles with application identifiers matching the identifier in the signature in order to be eligible for TestFlight." (90885)

"Cannot be used with TestFlight because the executable “P3X-Redis-UI.app/Contents/Frameworks/P3X-Redis-UI Helper (Renderer).app/Contents/MacOS/P3X-Redis-UI Helper (Renderer)” in bundle “P3X-Redis-UI.app/Contents/Frameworks/P3X-Redis-UI Helper (Renderer).app” is missing a provisioning profile but has an application identifier in its signature. Nested executables are expected to have provisioning profiles with application identifiers matching the identifier in the signature in order to be eligible for TestFlight." (90885)

"Cannot be used with TestFlight because the executable “P3X-Redis-UI.app/Contents/Frameworks/P3X-Redis-UI Helper.app/Contents/MacOS/P3X-Redis-UI Helper” in bundle “P3X-Redis-UI.app/Contents/Frameworks/P3X-Redis-UI Helper.app” is missing a provisioning profile but has an application identifier in its signature. Nested executables are expected to have provisioning profiles with application identifiers matching the identifier in the signature in order to be eligible for TestFlight." (90885)

package.json, using npm run publish-macos-mas:

{
    "name": "p3x-redis-ui",
    "version": "2024.4.317",
    "description": "📡 P3X Redis UI is a very functional handy database GUI and works in your pocket on the responsive web or as a desktop app",
    "corifeus": {
        "description-snap": "P3X Redis UI is a very functional handy database GUI and works in your pocket on the responsive web or as a desktop app",
        "description": "📡 P3X Redis UI is a very functional handy database GUI and works in your pocket on the responsive web or as a desktop app",
        "snap": true,
        "icon": "fas fa-database",
        "code": "2Q",
        "prefix": "p3x-",
        "type": "p3x",
        "publish": true,
        "build": true,
        "nodejs": "v22.1.0",
        "reponame": "redis-ui",
        "opencollective": false,
        "install-appimage-launcher": "sudo add-apt-repository ppa:appimagelauncher-team/stable && sudo apt install -y appimagelauncher"
    },
    "main": "src/app.js",
    "bin": {
        "p3x-redis": "./bin/p3x-redis.js"
    },
    "scripts": {
        "test": "grunt",
        "dist": "electron-builder",
        "build": "electron-builder --ia32 --x64  build/dist",
        "build-test": "electron-builder build/dist",
        "publish-electron": "rm -rf dist && electron-builder --p onTagOrDraft --linux --armv7l --arm64 --linux AppImage deb rpm --x64",
        "publish-windows": "rimraf dist && electron-builder -p always --windows",
        "publish-windows-store": "rimraf dist && electron-builder --windows",
        "publish-electron-snap": "rimraf dist && electron-builder --linux snap -p never --armv7l --x64",
        "publish-electron-snap-arm64": "rimraf dist && electron-builder --linux snap -p never --arm64",
        "publish-electron-yml": "node ./node_modules/corifeus-builder/src/utils/appimage/post-build.js",
        "publish-electron-flatpak": "rm -rf dist && electron-builder -p always --linux flatpak --x64 --arm64",
        "publish-macos": "electron-builder --mac --publish never",
        "publish-macos-mas": "rimraf build  && cp -R artifacts/apple/entitlements/ ./build  && cp secure/apple/p3xredisui.provisionprofile ./build  && electron-builder --mac mas --universal  --publish never"
    },
    "repository": {
        "type": "git",
        "url": "https://github.com/patrikx3/redis-ui.git"
    },
    "keywords": [
        "redis",
        "ui",
        "gui",
        "web",
        "electron",
        "desktop",
        "server",
        "angularjs",
        "javascript",
        "material",
        "dark",
        "light",
        "tree",
        "database",
        "redis-cluster",
        "donation",
        "redis-desktop-manager",
        "ioredis",
        "p3x",
        "redis-gui",
        "redis-gui-client",
        "redis-desktop"
    ],
    "author": "Patrik Laszlo <alabard@gmail.com>",
    "license": "MIT",
    "devDependencies": {
        "axios": "^1.7.1",
        "copyfiles": "^2.4.1",
        "corifeus-builder": "^2024.4.140",
        "electron": "^30.0.6",
        "electron-builder": "^24.13.3",
        "node-fetch": "^3.3.2",
        "rimraf": "^5.0.7"
    },
    "engines": {
        "node": ">=12.13.0"
    },
    "homepage": "https://corifeus.com/redis-ui",
    "dependencies": {
        "@fontsource/roboto": "^5.0.13",
        "angular": "^1.8.3",
        "angular-animate": "^1.8.3",
        "angular-aria": "^1.8.3",
        "angular-material": "^1.2.5",
        "angular-messages": "^1.8.3",
        "corifeus-utils": "^2024.4.123",
        "electron-store": "8.2.0",
        "electron-updater": "^6.1.8",
        "p3x-redis-ui-material": "^2024.4.236",
        "p3x-redis-ui-server": "^2024.4.233"
    },
    "build-save": {
        "afterSign": "scripts/notarize.js",
        "mac": {
            "entitlements": "artifacts/apple/entitlements/entitlements.plist",
            "entitlementsInherit": "artifacts/apple/entitlements/entitlementsInherit.plist",
            "provisioningProfile": "p3xredisui.provisionprofile"
        }
    },
    "build": {
        "afterAllArtifactBuild": "./node_modules/corifeus-builder/src/utils/appimage/after-all-artifact-build.js",
        "publish": [
            {
                "provider": "github",
                "owner": "patrikx3",
                "repo": "redis-ui"
            }
        ],
        "icon": "src/electron/images/",
        "appId": "com.patrikx3.redis-ui",
        "productName": "P3X-Redis-UI",
        "copyright": "(c) Copyright P3X / Corifeus / PatrikX3 as MIT license",
        "win": {
            "icon": "src/electron/images/",
            "target": "nsis"
        },
        "nsis": {
            "artifactName": "${productName}-Setup-${version}.${ext}"
        },
        "linux": {
            "category": "Development",
            "icon": "../src/electron/images/",
            "target": "appimage"
        },
        "mac": {
            "icon": "artifacts/apple/icons/redis.icns",
            "category": "public.app-category.developer-tools",
            "hardenedRuntime": true,
            "gatekeeperAssess": false,
            "identity": "Patrik László (3GB3S9SH84)",
            "extendInfo": {
                "ElectronTeamID": "3GB3S9SH84"
            },
            "notarize": {
                "teamId": "3GB3S9SH84"
            },
            "target": [
                {
                    "target": "default",
                    "arch": [
                        "universal"
                    ]
                }
            ]
        },
        "mas": {
            "entitlements": "build/entitlements.mas.plist",
            "entitlementsInherit": "build/entitlements.mas.plist",
            "provisioningProfile": "build/p3xredisui.provisionprofile",
            "type": "distribution",
            "binaries": [
                "Contents/Frameworks/P3X-Redis-UI Helper (GPU).app",
                "Contents/Frameworks/P3X-Redis-UI Helper (Plugin).app",
                "Contents/Frameworks/P3X-Redis-UI Helper (Renderer).app",
                "Contents/Frameworks/P3X-Redis-UI Helper.app"
            ]
        },
        "snap": {
            "environment": {
                "DISABLE_WAYLAND": 1
            }
        }
    }
}

i added binaries in mas tag in package.json, but it still giving this error.

Please help!