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: README.md
+11-24Lines changed: 11 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,32 +74,19 @@ The reason why OSX builds built on Windows do not work on OSX, is the fact that
74
74
75
75
## The Solution
76
76
77
-
This package automatically creates a zip from the mac build and restores the executable bits, which get lost because Windows does not support them.
77
+
This package automatically creates a zip from the mac build and restores the executable bits, which get lost since Windows does not support them.
78
78
79
79
If you use the [WSL Zip Creation Method](#wsl), it utilises the Windows Subsystem for Linux to zip the build, so OSX knows how to read, unpack, and fix all files, hence adding the executable bit. It's possible to manually add the executable bit to a file on Linux too, with the `chmod` command. If WSL is already installed on the system, this is the recommended method.
80
80
81
81
The [Zip Manipulation](#zip-manipulation) method, instead, is a Windows-only solution. Instead of relying on a Unix system, it zips the build first, then edits the zip itself and its entries (the files inside), to restore the missing file attributes. To make sure everything works as expected on OSX when unzipping this zip, it changes the zip's Host OS to Unix too, to ensure the required file attributes are applied.
82
82
83
-
### TODO
84
-
85
-
The following files will need to be edited:
86
-
87
-
-[ ] package.json
88
-
-[x] Package Name
89
-
-[x] Description
90
-
-[x] Package version
91
-
-[x] Minimum Unity version
92
-
-[ ] Author information
93
-
-[x]~~Package samples~~
94
-
- More information about package manifest files: https://docs.unity3d.com/Manual/upm-manifestPkg.html
95
-
-[x]~~Runtime .asmdef~~
96
-
-[x]~~File name must be [company-name].[package-name].asmdef~~
97
-
-[x]~~Assembly name must be [company-name].[package-name]~~
98
-
-[x] Editor .asmdef
99
-
-[x] File name must be "[company-name].[package-name].Editor.asmdef"
100
-
-[x] Assembly name must be "[company-name].[package-name].Editor"
101
-
-[x]~~Optional: Reference runtime assembly~~
102
-
-[ ] LICENSE.md
103
-
-[x] This README.md
104
-
105
-
See https://docs.unity3d.com/Manual/cus-layout.html for more info.
83
+
> [!WARNING]
84
+
> The zip file should never be unzipped in a Windows environment, since it causes the file attributes to get lost, even when zipped again. Editing the zip's contents with an application (e.g. WinRAR) _should_ be fine.
85
+
86
+
The zip creation process runs at the very end of the build process, meaning that all changes made during a `IPostProcessBuild` script are included in the build.
0 commit comments