Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e66ff991222d4c34c7546c06305033c78753942f4cf930281a362abc081947a3
Ticket: 113be1991e7262479a1843f3924540d7a08d8a88
zipfs on mac
User & Date: marc_culler on 2021-01-22 17:40:04
Changes

  1. icomment:
    Given that macOS has a concept of a "framework" which is designed for this purpose,
    I agree that it would make more sense to use it.  Of course it is not one file,
    it is a directory, but it is easily distributed as one file, either as a disk image
    or a .pkg file. Using a zip filesystem would seem to be a Windows solution to this
    problem which is not such a good match for macOS.
    
    There is also a notion of a "subframework" in macOS.  An application bundle is
    allowed to contain a Frameworks directory at the same level as the MacOS directory
    that contains the main executable of the application.  When Tcl is built as a
    framework, all of the needed files are already available to Tcl.  This requires
    no change.  If you want to use the Tcl framework as a subframework placed in the
    Frameworks directory of an application bundle then you can make the Tcl library
    available to the application by setting the library load path of the main
    executable of the application to include:
    @executable_path/../Frameworks/Tcl.framework/Versions/Current/Tcl
    or even
    @executable_path/../Frameworks/Tcl.framework/Tcl
    This is easily done with install_name_tool and works fine with code signing as
    well.
    
    So using a subframework would seem to be a more natural means of doing this
    on macOS if I understand correctly what the goal is.
    
  2. login: "marc_culler"
  3. mimetype: "text/plain"
  4. username: "Marc Culler"