在Windows平台上创建Tcl Starkit的步骤

在Windows平台上创建Tcl Starkit的步骤,tcl,tk,starkit,Tcl,Tk,Starkit,我试图找出在Windows中创建Tcl starkit的基本步骤。我以前也问过类似的问题,还买了一本关于Tcl编程的书,访问了wiki.Tcl.tk,直接给Tcl程序员发了电子邮件,等等。。。总之,我从我的资源和这个网站得到了很好的反馈;但是,我没有解释,在构建批处理文件、使用命令控制台和创建目录方面,我是一个完全的新手 我真的需要有人给我解释清楚,因为我似乎无法解释任何人试图告诉我的东西。我认为Visual Studio和.NET让我变得愚蠢:) 目前,我已经下载了tclkit、tclkits

我试图找出在Windows中创建Tcl starkit的基本步骤。我以前也问过类似的问题,还买了一本关于Tcl编程的书,访问了wiki.Tcl.tk,直接给Tcl程序员发了电子邮件,等等。。。总之,我从我的资源和这个网站得到了很好的反馈;但是,我没有解释,在构建批处理文件、使用命令控制台和创建目录方面,我是一个完全的新手

我真的需要有人给我解释清楚,因为我似乎无法解释任何人试图告诉我的东西。我认为Visual Studio和.NET让我变得愚蠢:)

目前,我已经下载了tclkit、tclkitsh和sdx.kit,并创建了一个简单的程序(Test_App.tcl)。到目前为止,我知道我必须通过控制台(tclkitsh)运行sdx,方法是创建一个批处理文件(sdx.bat),创建一个vfs目录,然后使用sdxwrap。我完全不知道如何做这些简单的步骤

这似乎要求太多了,但如果有人能用uber新手的术语来翻译创建starkit,我将不胜感激。我希望这样:在TckKitsh控制台中,键入以下内容。。。;在tclkit.exe中,键入以下。。。;现在你应该。。。;等等

谢谢,


DFM第1步:创建工作目录。打开windows命令提示符。这可能在“开始”菜单“附件”、“命令提示符”下。键入命令“mkdir temp”,然后用“cd temp”将cd刻录到此目录:

记下此目录的位置。它会立即告诉你

步骤2:下载必要的文件。您需要三件事,一件是(将成为包装应用程序的一部分),(一件具有包装命令的Tlkit)和(将从中运行sdx.kit)

下载这三个文件并将它们放在您创建的临时目录中。严格来说,这不是必需的,但它使本教程更容易。重命名命令行tclkit,也可以使本教程更简单:

C:\Documents and Settings\Owner\temp>dir
 Volume in drive C has no label.
 Volume Serial Number is F434-9FD3

 Directory of C:\Documents and Settings\Owner\temp

09/05/2009  04:32 PM    <DIR>          .
09/05/2009  04:32 PM    <DIR>          ..
09/05/2009  04:21 PM           105,528 sdx.kit
09/05/2009  04:31 PM         1,268,686 tclkit-win32.upx.exe
09/05/2009  04:27 PM           668,142 tclkitsh-win32.upx.exe
               3 File(s)      2,042,356 bytes
               2 Dir(s)  13,232,046,080 bytes free

C:\Documents and Settings\Owner\temp>rename tclkitsh-win32.upx.exe tclkit.exe
步骤4:为代码创建目录。sdx假设对于名为“myapp”的应用程序,存在名为“myapp.vfs”的目录:

验证myapp.vfs是否如下所示:

C:\Documents and Settings\Owner\temp>dir myapp.vfs
 Volume in drive C has no label.
 Volume Serial Number is F434-9FD3

 Directory of C:\Documents and Settings\Owner\temp\myapp.vfs

09/05/2009  04:40 PM    <DIR>          .
09/05/2009  04:40 PM    <DIR>          ..
09/05/2009  04:40 PM                60 main.tcl
               1 File(s)             60 bytes
               2 Dir(s)  13,231,456,256 bytes free

如果一切顺利,就会弹出一个窗口,上面写着“你好,世界”

你好,布莱恩-我真的很感谢你的帮助。你的回答很彻底,效果很好。谢谢你,别忘了接受这个答案!
C:\Documents and Settings\Owner\temp>tclkit sdx.kit
Specify one of the following commands:
 addtoc    eval      fetch     ftpd      httpd     httpdist  ls        lsk
 md5sum    mkinfo    mkpack    mkshow    mksplit   qwrap     ratarx    rexecd
 starsync  sync      tgz2kit   treetime  unwrap    update    version   wrap

For more information, type:  sdx.kit help ?command?

C:\Documents and Settings\Owner\temp>
C:\Documents and Settings\Owner\temp>mkdir myapp.vfs

C:\Documents and Settings\Owner\temp>dir
 Volume in drive C has no label.
 Volume Serial Number is F434-9FD3

 Directory of C:\Documents and Settings\Owner\temp

09/05/2009  04:37 PM    <DIR>          .
09/05/2009  04:37 PM    <DIR>          ..
09/05/2009  04:37 PM    <DIR>          myapp.vfs
09/05/2009  04:21 PM           105,528 sdx.kit
09/05/2009  04:31 PM         1,268,686 tclkit-win32.upx.exe
09/05/2009  04:27 PM           668,142 tclkit.exe
               3 File(s)      2,042,356 bytes
               3 Dir(s)  13,231,599,616 bytes free

C:\Documents and Settings\Owner\temp>
package require Tk
label .l -text "Hello, world"
pack .l
C:\Documents and Settings\Owner\temp>dir myapp.vfs
 Volume in drive C has no label.
 Volume Serial Number is F434-9FD3

 Directory of C:\Documents and Settings\Owner\temp\myapp.vfs

09/05/2009  04:40 PM    <DIR>          .
09/05/2009  04:40 PM    <DIR>          ..
09/05/2009  04:40 PM                60 main.tcl
               1 File(s)             60 bytes
               2 Dir(s)  13,231,456,256 bytes free
C:\Documents and Settings\Owner\temp>tclkit sdx.kit wrap myapp -runtime tclkit-w
in32.upx.exe
1 updates applied

C:\Documents and Settings\Owner\temp>dir
 Volume in drive C has no label.
 Volume Serial Number is F434-9FD3

 Directory of C:\Documents and Settings\Owner\temp

09/05/2009  04:43 PM    <DIR>          .
09/05/2009  04:43 PM    <DIR>          ..
09/05/2009  04:44 PM         1,272,604 myapp
09/05/2009  04:40 PM    <DIR>          myapp.vfs
09/05/2009  04:21 PM           105,528 sdx.kit
09/05/2009  04:31 PM         1,268,686 tclkit-win32.upx.exe
09/05/2009  04:27 PM           668,142 tclkit.exe
               5 File(s)      3,315,000 bytes
               3 Dir(s)  13,229,654,016 bytes free
C:\Documents and Settings\Owner\temp>rename myapp myapp.exe

C:\Documents and Settings\Owner\temp>myapp