Hi, No I try to distribue myself, independently.
Post
Replies
Boosts
Views
Activity
Hi,
I still have the same error.
Here is my procedure in detail
Script editor: main.scpt save as application.
I sign my code:
codesign -s "Developer ID Application" -f --timestamp -o runtime /contents/Resources/Scripts/Main.scpt
Error: "Main.scpt: resource fork, Finder information, or similar detritus not allowed"
-xattr -cr Main.scpt
I resign my code:
codesign -s "Developer ID Application" -f --timestamp -o runtime /contents/Resources/Scripts/Main.scpt=OK
CodeSign Main.scpt -vvvvvv = Main.scpt: valid on disk, Main.scpt: satisfies its Designated Requirement.
Then I create the package with the tool : the macOS installer builder:
https://medium.com/swlh/the-easiest-way-to-build-macos-installer-for-your-application-34a11dd08744
When the package is built, to execute it, I have to right click on it and open. The error message is displayed but I can execute package.
I'd like no to display the error message :)
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
Hi, I come back for a little problem....
My jxa app uses Keyboard Maestro engine.
When I clean and sign my code, I can notary my app but when I execute my app, permissions about control keyboard maestro don't ask...
If I don't sing my code, permissions ask...
How can I do to ask permission when my code is signed ?
Here is my plist app :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>fr</string>
<key>CFBundleExecutable</key>
<string>applet</string>
<key>CFBundleIconFile</key>
<string>applet</string>
<key>CFBundleIdentifier</key>
<string>com.LaChaineDeLuc.FastBoard</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>FastBoard 4.2.2</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.2.2</string>
<key>CFBundleSignature</key>
<string>aplt</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.16</string>
</dict>
<key>LSRequiresCarbon</key>
<true/>
<key>NSAppleEventsUsageDescription</key>
<string>Access required to control Keyboard Maestro</string>
<key>NSSystemAdministrationUsageDescription</key>
<string>This script needs access to administer this system to run.</string>
<key>OSAAppletShowStartupScreen</key>
<false/>
<key>WindowState</key>
<dict>
<key>bundleDividerCollapsed</key>
<true/>
<key>bundlePositionOfDivider</key>
<real>0.0</real>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
<integer>2</integer>
<key>name</key>
<string>ScriptWindowState</string>
<key>positionOfDivider</key>
<real>419</real>
<key>savedFrame</key>
<string>20 190 700 678 0 0 1440 875 </string>
<key>selectedTab</key>
<string>description</string>
</dict>
</dict>
</plist>
Yes, Via its Apple event interface.
Normaly, I get a permission to read and write in user directory, and a permission for jxa controls keyboard maestro
When I clean my .app with
xattr -cr
or just with :
xattr -rd com.apple.FinderInfo
xattr -rd com.apple.ResourceFork:
Permissions don't apear