Re: can a starkit create starkits?

Pat Thoyts <[email protected]> Wed, 4 Aug 2010 23:22:56 +0100
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
On 4 August 2010 16:59, Harald Oehlmann <[email protected]> wrote=
:
> Thank you for the question !
>
> Am 04.08.2010 17:31, schrieb jemptymethod:
>> So within dwexpress.exe I will want to have some tcl code or a shell
>> command that will likewise create an .exe. =A0But I want to avoid
>> needing to embed both a cli and gui version of tclkit within
>> dwexpress.exe itself.
>
> As far as I know you need two files on windows.
> When a windows exe is executed, there is no access to this file.
> On other platforms, this should be possible.
>
>> Will I be able to access the starkit API from within dwexpress.exe to
>> run something such as:
>>
>> package require starkit
>> starkit::wrap userapp.exe -runtime ./tclkit-gui
>
> I don't know. I would look to the sources of sdx. It should be
> relatively easy to find out how to do it.
>
> The sources are here: (or just unwrap the kit)
> http://code.google.com/p/tclkit/

To make a starpack executable, a tclkit executable has the contents of
another vfs merged into the tclkit's vfs. There is nothing to stop you
doing this manually. Roughly, from a source tclkit exe which contains
a raw tclkit.exe in its own vfs:
 file copy tclkit.exe [set exe [file join $env(TEMP) xyzzy.exe]] ;#
copy the exe out to the native filesystem
 vfs::mk4::Mount $exe /mnt
 <copy files and create new ones in /mnt>
 vfs::umount /mnt

If you use the standard technique to make a simple starpack and
compare the unwrapped tree from before and after you can see how the
merge goes and replicate it quite simply.

--=20
You received this message because you are subscribed to the "starkit" group=
.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to starkit-unsubscribe@googlegro=
ups.com
For more options, visit this group at http://groups.google.com/group/starki=
t?hl=3Den