Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support to iOSSimARM64, MacOS and Linux #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

viniciusfbb
Copy link

@viniciusfbb viniciusfbb commented Feb 23, 2022

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 path a.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 using TPath.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 code ExtractFilePath(ParamStr(0)).

image

@viniciusfbb viniciusfbb changed the title Added support to MacOS and Linux Added support to iOSSimARM64, MacOS and Linux Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant