Hi,
I made an application in JXA that I would like to distribute.
1. I downloaded and installed an installation certificate via my developer account,
2. I generated my PKG with the following distribution XML file:
```language
code-block
<?xml version="1.0" encoding="utf-8" standalone="no"?> <installer-script minSpecVersion="1.000000"> <title>PRODUCT VERSION</title> <background mime-type="image/png" file="banner.png" scaling="proportional"/> <background-darkAqua mime-type="image/png" file="banner.png" scaling="proportional"/> <os-version min="12.0" /> <app id=« Organisation-PRODUCT-VERSION" /> <welcome file="welcome.html" mime-type="text/html" /> <conclusion file="conclusion.html" mime-type="text/html" /> <license file="LICENSE.txt"/> <options customize="never" allow-external-scripts="no"/> <domains enable_anywhere="true" /> <choice customLocation="/Applications" /> <choices-outline> <line choice="PRODUCT"/> </choices-outline> <choice id="PRODUCT" title="PRODUCT"> <pkg-ref id="PRODUCT.pkg"/> </choice> <pkg-ref id="PRODUCT.pkg" auth="Root">PRODUCT.pkg</pkg-ref> </installer-script>
I do get a signed PKG. But here is the error message I get when I try to install my PKG:
Cannot open ‘« Application ».pkg' because Apple cannot verify it is free of malware.
This software needs to be updated. Contact the developer to learn more.
This file was uploaded on an unknown date.
If I right click with the mouse and then open, the PKG runs.
Is a tag missing in my XML?
Do I need to generate another certificate?
Thanks for your help
Ok, that's good... I got what I wanted... Here is I did for someone.
- Clean APP :
xattr -cr File.app
- Sign App :
codesign -s "Developer ID Application" -f --timestamp -o runtime File.app
- create PKG
- submitting app :
xcrun notarytool submit --keychain-profile "PasswordApp"
- and :
xcrun stapler staple File.pkg
Thank for your help