-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add macOS exporting and running non App Store apps pages. Add Windows…
… code signing info.
- Loading branch information
Showing
15 changed files
with
299 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _doc_exporting_for_linux: | ||
|
||
Exporting for Linux | ||
=================== | ||
|
||
The simplest way to distribute a game for PC is to copy the executables | ||
(``godot``), compress the folder and send it to someone else. However, this is | ||
often not desired. | ||
|
||
Godot offers a more elegant approach for PC distribution when using the export | ||
system. When exporting for Linux, the exporter takes all the project files and | ||
creates a ``data.pck`` file. This file is bundled with a specially optimized | ||
binary that is smaller, faster and does not contain the editor and debugger. |
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 15 additions & 11 deletions
26
tutorials/export/exporting_for_pc.rst → tutorials/export/exporting_for_windows.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
.. _doc_running_on_mac: | ||
|
||
Running Godot apps on macOS | ||
=========================== | ||
|
||
By default, macOS will run only applications that are signed and notarized. | ||
|
||
Depending on the way a macOS app is signed and distributed, the following scenarios are possible: | ||
|
||
App is signed, notarized and distributed via App Store | ||
------------------------------------------------------ | ||
|
||
The app should run out of the box, without extra user interaction required. | ||
|
||
App is signed, notarized and distributed outside App Store | ||
---------------------------------------------------------- | ||
|
||
App developer have joined Apple Developer Program, and configurated siging and notarization options during export. | ||
|
||
When you try to run the app, the following dialog is displayed: | ||
|
||
.. image:: img/signed_and_notarized_0.png | ||
|
||
Click "Open" to start the app. | ||
|
||
If you see the following warning dialog, your Mac is set up to allow apps only from the App Store. | ||
|
||
.. image:: img/signed_and_notarized_1.png | ||
|
||
To allow third-party apps open "System Preferences", click "Security & Privacy", then click "General", unlock settings, and select "App Store and identified developers". | ||
|
||
.. image:: img/sys_pref_0.png | ||
|
||
App is signed (including ad-hoc signatures) but not notarized | ||
------------------------------------------------------------- | ||
|
||
App developer used self-signed certificate or ad-hoc signing (default Godot behavior when exporting app form the macOS). | ||
|
||
When you try to run the app, the following dialog is displayed: | ||
|
||
.. image:: img/signed_0.png | ||
|
||
To run this app, you can temporarily override Gatekeeper: | ||
|
||
* Either open "System Preferences", click "Security & Privacy", then click "General", and click "Open Anyway". | ||
|
||
.. image:: img/sys_pref_1.png | ||
|
||
* Or, right-click (Control-click) on the app icon in the "Finder" window and select "Open" from the menu. | ||
|
||
.. image:: img/signed_1.png | ||
|
||
* Then click "Open" in the confirmation dialog. | ||
|
||
.. image:: img/signed_2.png | ||
|
||
* Enter your password if you're prompted. | ||
|
||
App is not-signed, executable is linker-signed | ||
---------------------------------------------- | ||
|
||
App is built using official export templates, but is not signed (default Godot behavior when exporting from Windows and Linux). | ||
|
||
When you try to run the app, the following dialog is displayed: | ||
|
||
.. image:: img/linker_signed_1.png | ||
|
||
To run this app, you can remove "quarantine" file attribute manually: | ||
|
||
* Open "Terminal.app" (press ``Cmd + Space```, and enter "Terminal"). | ||
|
||
* Navigate to the folder containing the target application. | ||
|
||
Use ``cd path_to_the_app_folder`` command, e.g. ``cd ~/Downloads/`` if it's in the "Downloads" folder. | ||
|
||
* Run following command ``xattr -dr com.apple.quarantine "Unsigned Game.app"`` (including quotation marks and ".app" extension). | ||
|
||
Neither app not executable is signed (relevant for Apple Silicon macs only) | ||
--------------------------------------------------------------------------- | ||
|
||
App is built using custom export templates, and it is not signed at all. | ||
|
||
When you try to run the app, the following dialog is displayed: | ||
|
||
.. image:: img/unsigned_1.png | ||
|
||
To run this app, you can ad-hoc sign it yourself: | ||
|
||
* Install "Xcode" for the app store, start it and confirm command line tools installation. | ||
|
||
* Open "Terminal.app" (press ``Cmd + Space```, and enter "Terminal"). | ||
|
||
* Navigate to the folder containing the target application. | ||
|
||
Use ``cd path_to_the_app_folder`` command, e.g. ``cd ~/Downloads/`` if it's in the "Downloads" folder. | ||
|
||
* Run following commands: | ||
|
||
``xattr -dr com.apple.quarantine "Unsigned Game.app"`` (including quotation marks and ".app" extension). | ||
|
||
``codesign -s - --force --deep "Unsigned Game.app"`` (including quotation marks and ".app" extension). |