From: Arjan on 18 Dec 2009 06:14 Hi! I want to script the generation of stand-alone executables from my tcl- scripts. The first step is a wrapping step. Under Win/MinGW/MSYS: ../tclkit-win32.upx.exe sdx.kit qwrap <tclscriptname> This makes a tcl-window pop up. The script only proceeds with the next step (creation of unwrapping) when I close the tcl-window. Together with the third step, where a "starpack" is generated, this means that I have to close 3 windows. This is not what I want when the steps are done automatically in a script. Anyone know how to prevent the window from popping up? Under linux the window doesn't show (fortunately). Regards, Arjan
From: Arjan on 18 Dec 2009 06:31 Solution: Have both the command-line version (tclkitsh-win32.upx.exe) and the gui-version (tclkit-win32.upx.exe) ready in your directory, use the commandline-version to do the job in your script, but use the gui- version to link with as runtime when you make the final executable: TCLScript=$1 ../tclkitsh-win32.upx.exe sdx.kit qwrap $TCLScript.tcl ../tclkitsh-win32.upx.exe sdx.kit unwrap $TCLScript.kit cp tclkit-win32.upx.exe tclkitcopy.exe ../tclkitsh-win32.upx.exe sdx.kit wrap $TCLScript.exe -runtime tclkitcopy.exe rm tclkitcopy.exe rm $TCLScript.kit With the above lines stored in a script named tcl2exe you're served! A.
From: Arjen Markus on 18 Dec 2009 07:06 On 18 dec, 12:31, Arjan <arjan.van.d...(a)rivm.nl> wrote: > Solution: > > Have both the command-line version (tclkitsh-win32.upx.exe) and the > gui-version (tclkit-win32.upx.exe) ready in your directory, use the > commandline-version to do the job in your script, but use the gui- > version to link with as runtime when you make the final executable: > > TCLScript=$1 > ./tclkitsh-win32.upx.exe sdx.kit qwrap $TCLScript.tcl > ./tclkitsh-win32.upx.exe sdx.kit unwrap $TCLScript.kit > cp tclkit-win32.upx.exe tclkitcopy.exe > ./tclkitsh-win32.upx.exe sdx.kit wrap $TCLScript.exe -runtime > tclkitcopy.exe > rm tclkitcopy.exe > rm $TCLScript.kit > > With the above lines stored in a script named tcl2exe you're served! > > A. You may want to wikify that :) Regards, Arjen
From: Arjan on 18 Dec 2009 08:17 > You may want to wikify that :) > Arjen See http://wiki.tcl.tk/8900 A.
From: Arjen Markus on 18 Dec 2009 08:22 On 18 dec, 14:17, Arjan <arjan.van.d...(a)rivm.nl> wrote: > > You may want to wikify that :) > > Arjen > > Seehttp://wiki.tcl.tk/8900 > > A. Ah, the receipe was already there! Good :). Regards, Arjen
|
Next
|
Last
Pages: 1 2 Prev: teacup install twapi Next: regsub (and regular expressions in general) trouble. |