You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/tutorials/building_2d_games/25_packaging_game/index.md
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,16 @@ To create this structure, from the same terminal window:
145
145
> [!NOTE]
146
146
> The `mkdir -p`command creates directories including any necessary parent directories. The `-p` flag ensures all intermediate directories are created without error if they do not exist yet.
147
147
148
-
2. Combine the Intel (x64) and Apple Silicon (arm64) builds into a *universal binary*. To do this, execute the following commands:
148
+
2. Copy all files from the Intel (x64) build to the MacOS directory. This ensures all the required dependencies are included. To do this, execute the following command:
> This copies all files from the publish directory, including the executable, all dependent `.dll` files, and the `Content` directory that contains your game assets.
156
+
157
+
3. Replace the executable with a universal binary that works on both Intel and Apple Silicon Macs. To do this, execute the following command:
@@ -154,14 +163,14 @@ To create this structure, from the same terminal window:
154
163
> [!NOTE]
155
164
> The `lipo`command is a macOS utility that works with multi-architecture binaries. Here, it combines the Intel (x64) and Apple Silicon (arm64) executables into a single "universal binary" that can run natively on both Apple Silicon and Intel processor based Macs.
156
165
157
-
3. Next, copy the your content files to the expected location within the application bundle structure. To do this, execute the following commands:
166
+
4. Move the Content directory from the MacOS directory to the Resources directory, following macOS application bundle conventions. To do this, execute the following command:
>The `cp -R`command copies files recursively, meaning it will copy the entire directory structure. The `-R` flag ensures all subdirectories and their contents are copied.
173
+
>This moves the `Content` directory to the expected location forresourcesin a macOS application bundles.
165
174
166
175
4. Create a new file called *Info.plist*in the *Contents* directory of the application bundle with the following command:
0 commit comments