mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 23:39:21 +08:00
Update to Mac App Store Guide (#2369)
This commit is contained in:
parent
3fde885d34
commit
fa33e5d2bc
@ -21,6 +21,12 @@ This page gives a brief overview of how to submit your Wails App to the Mac App
|
|||||||
3. Populate your app with the correct screen shots, descriptions, etc. as required by Apple
|
3. Populate your app with the correct screen shots, descriptions, etc. as required by Apple
|
||||||
4. Create a new version of your app
|
4. Create a new version of your app
|
||||||
|
|
||||||
|
#### Create Provisioning Profile
|
||||||
|
1. Go to the [Apple Developer Profiles](https://developer.apple.com/account/resources/profiles/list) page
|
||||||
|
2. Add a new provisioning profile for Mac App Store Distribution
|
||||||
|
3. Set the Profile Type as Mac and select the App ID for the application created above
|
||||||
|
4. Select the Mac App Distribution certificate
|
||||||
|
5. Name the Provisioning Profile embedded and download the created profile.
|
||||||
|
|
||||||
## Mac App Store Process
|
## Mac App Store Process
|
||||||
|
|
||||||
@ -30,7 +36,7 @@ Apps submitted to the Mac App Store must run under Apple's [App Sandbox](https:/
|
|||||||
|
|
||||||
**Example Entitlements File**
|
**Example Entitlements File**
|
||||||
|
|
||||||
This is an example entitlements file from the [RiftShare](https://github.com/achhabra2/riftshare) app. For reference please put in the entitlements your app requires. Refer to [this site](https://developer.apple.com/documentation/bundleresources/entitlements) for more information.
|
This is an example entitlements file from the [RiftShare](https://github.com/achhabra2/riftshare) app. For reference please put in the entitlements your app requires. Refer to [this site](https://developer.apple.com/documentation/bundleresources/entitlements) for more information. You will need to replace the Team ID and Application Name with the ones you registered above.
|
||||||
|
|
||||||
```xml title="entitlements.plist"
|
```xml title="entitlements.plist"
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
@ -47,10 +53,17 @@ This is an example entitlements file from the [RiftShare](https://github.com/ach
|
|||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.files.downloads.read-write</key>
|
<key>com.apple.security.files.downloads.read-write</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>com.apple.application-identifier</key>
|
||||||
|
<string>TEAM_ID.APP_NAME</string>
|
||||||
|
<key>com.apple.developer.team-identifier</key>
|
||||||
|
<string>TEAM_ID</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Add the Embedded Provisioning Profile**
|
||||||
|
The Provisioning Profile created above needs to be added to the root of the applicaton. It needs to be named embedded.provisionprofile.
|
||||||
|
|
||||||
#### Build and Sign the App Package
|
#### Build and Sign the App Package
|
||||||
|
|
||||||
The following is an example script for building and signing your app for Mac App Store submission. It assumes you are running the script from your root project directory.
|
The following is an example script for building and signing your app for Mac App Store submission. It assumes you are running the script from your root project directory.
|
||||||
@ -66,6 +79,8 @@ APP_NAME="YourApp"
|
|||||||
|
|
||||||
wails build -platform darwin/universal -clean
|
wails build -platform darwin/universal -clean
|
||||||
|
|
||||||
|
cp ./embedded.provisionprofile "./build/bin/$APP_NAME.app/Contents"
|
||||||
|
|
||||||
codesign --timestamp --options=runtime -s "$APP_CERTIFICATE" -v --entitlements ./build/darwin/entitlements.plist ./build/bin/$APP_NAME.app
|
codesign --timestamp --options=runtime -s "$APP_CERTIFICATE" -v --entitlements ./build/darwin/entitlements.plist ./build/bin/$APP_NAME.app
|
||||||
|
|
||||||
productbuild --sign "$PKG_CERTIFICATE" --component ./build/bin/$APP_NAME.app /Applications ./$APP_NAME.pkg
|
productbuild --sign "$PKG_CERTIFICATE" --component ./build/bin/$APP_NAME.app /Applications ./$APP_NAME.pkg
|
||||||
|
Loading…
Reference in New Issue
Block a user