Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 92b5b430c006bb60e45ed5bea6a8b5d1b774ab9e9f953f9832262abe4bea069d
Ticket: 92c2169782c2e0068d573dba9eb99d390ade31a7
macOS compiling and using Tcl8.7/Tk8.7
User & Date: marc_culler on 2021-01-29 14:03:22
Changes

  1. icomment:
    I think there should be two options:
    
    * --enable-zipfs which adds support for zip filesystems but does not generate a
      single file executable by embedding a zip file in the executable.
    
    * --single-file which does embed the zip file and, of course, must imply
      --eneable-zipfs
    
    
    The next question would be how to embed the zip file.  One possibility would
    be to write a temporary header file which defines a char array containing the
    bytes of the zip file.  Yes, the header would be several times larger than the
    zip if each byte is written out in octal with comma separators.  But that
    probably doesn't matter.  Then reading the zip file would require seeking to
    the offset of the char array.  That doesn't seem too march harder than seeking
    to the end of the original binary file, before the zip was appended.
    Alternatively, the array could be zeroed and then the zip file could be written
    into the binary after compilation. (But *before* signing the code!)
    
  2. login: "marc_culler"
  3. mimetype: "text/plain"
  4. username: "Marc Culler"