Symlink settings/permissions on macOS environment

gdalik's Avatar

gdalik

08 Feb, 2024 03:20 AM

Hi!

I continue trying to make macOS builds for my Open Source Python app with AppVeyor.

After activating the desired Python environment, I run:

  - python3 -m pip install -r requirements.txt
  - python3 -m pip install -U pyinstaller
  - pyinstaller macos_build.spec

And the build process starts. But the result is not satisfactory because PyInstaller cannot create the symbolic links, or they are not preserved on AppVeyor macOS environment. Everything goes fine on my local machine with the same (latest) version of it and the same macos_build.spec file, though!
As a result, instead of creating symbolic links, it duplicates the same files in different folders inside the *.app bundle. The app size becomes ~900 MB instead of ~200 MB, and it doesn't work!..
This case is described in PyInstaller documentation:

Failing to preserve symbolic links will turn them into full file copies; the duplicated files will balloon the size of your frozen application, and may also lead to run-time issues.

Thanks for your help!

  1. 1 Posted by gdalik on 09 Feb, 2024 02:22 AM

    gdalik's Avatar

    It turned out to be a zip archivation problem...

  2. gdalik closed this discussion on 09 Feb, 2024 02:22 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

20 Aug, 2024 09:07 PM
15 Aug, 2024 09:17 AM
10 Aug, 2024 02:42 PM
09 Aug, 2024 10:48 PM
06 Aug, 2024 08:03 PM
01 Aug, 2024 04:26 PM