Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f0364b275f48f3acf6997b51bfd4d2aefc44452bf9e8b1792e54e44ef8fcc6d9
Ticket: 75291b89b3d039ae0a804da61e0c3ed68320e371
Documentation of zipfs in tclsh(1)
User & Date: apnadkarni on 2024-08-03 03:10:02
Changes

  1. icomment:
    Torsten,
    
    Below is how `tcl_library` and `tk_library` look like for various build configurations.
    
    tclsh:
    
    ```
                                    | tcl_library
    tclsh Configuration             | Mount point @ zip path
    --------------------------------|------------------------------------------------
    --enable-shared --enable-zipfs  | //zipfs:/lib/tcl/tcl_library
                                    | //zipfs:/lib/tcl @ D:/tcl/90b3/x64/bin/tcl90.dll
    --disable-shared --enable-zipfs | //zipfs:/app/tcl_library
                                    | //zipfs:/app @ D:/tcl/90b3/x64-static/bin/tclsh90s.exe
    *               --disable-zipfs | D:/tcl/90b3/*/lib/tcl9.0
                                    | No mount points
    ```
    
    wish:
    
    ```
                                    | tcl_library
                                    | tk_library
    wish Configuration              | Mount point @ zip path
    --------------------------------|------------------------------------------------
    --enable-shared --enable-zipfs  | //zipfs:/lib/tcl/tcl_library
                                    | //zipfs:/lib/tk/tk_library
                                    | //zipfs:/lib/tcl @ D:/tcl/90b3/x64/bin/tcl90.dll
                                    | //zipfs:/lib/tk @ D:/tcl/90b3/x64/bin/tcl9tk90.dll
    --disable-shared --enable-zipfs | //zipfs:/app/tcl_library
                                    | //zipfs:/app/tk_library
                                    | //zipfs:/app @ D:/tcl/90b3/x64-static/bin/wish90s.exe
    *               --disable-zipfs | D:/tcl/90b3/*/lib/tcl9.0
                                    | D:/tcl/90b3/*/lib/tk9.0
                                    | No mount points
    ```
    
    Also note that the recipe for single file executables given in the TIP works only for --enable-shared builds, not for static shells. For static shells, you have to merge the embedded tcl_library zip with the application vfs, and then replace the embedded zip in the executable with the merged zip.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"