Added support to iOSSimARM64, MacOS and Linux #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added support to OSX64, OSXARM64 and Linux64. The changes have been tested and we are already using them in the Skia4Delphi project. See the grdeploy file of our demo.
In Mac there are three remote paths important in deployment:
Contents\MacOS\
is the binary folder, important to deploy dylib for example. If you add the file "a.dylib" in mac deployment with this remote path, you can load it using patha.dylib
.Contents\Resources\
is the internal resources folder of the application. This is the most common directory of resources. If you add the file "a.png" in mac deployment with this remote path, you can load it using path'../Resources/a.png'
Contents\Resources\StartUp\
is a subdir of the internal resources folder of the application, created by embarcadero to be copied to the home path of the Mac in application initialization. If you add the file "a.png" in mac deployment with this remote path, you can load it using path'../Resources/StartUp/a.png'
, but also, you can load it usingTPath.Combine(TPath.GetHomePath, 'a.png')
that will be a copy of the file in home path:/Users/<username>/a.png
In Linux, the important remote path is the
.\
. The files can be access using, for example, the codeExtractFilePath(ParamStr(0))
.