|
Post by pablosl on Feb 18, 2023 19:33:43 GMT -5
|
|
|
Post by Rod on Feb 19, 2023 2:59:58 GMT -5
Yeah John has not been around for quite a while. I suspect that the code used a .dll to zip the files. That .dll is probably out of date too. However all is not lost. Zipping has been integrated within Windows.
To achieve what John is doing first create a project folder and place all necessary files inside that folder. If it is simply a .bas program you only need the .bas and any support files like .bmps or .wav. If it is a .tkn same again. In both these cases the end user needs to have Liberty installed. If you are distributing an .exe then you need all of the system support files in the project directory as well. You can use the menu option to create the .exe directory. It will contain the .tkn and renamed runtime.exe together with all the Liberty .dll and .ssl files together with your .bmps and .wav files.
Once you have everything in one directory and tested that it runs it is simply a case of navigating to the folder with windows explorer. Don’t go into the folder, be sure you can see the folder. Right click it and select from the list “Compress to new folder” A new .zip with the same name as your folder will appear. Distribute that.
Be sure that you don’t code hard paths in your program. Try and not use any paths just assume what you need is in the folder you are running from. That way the end user can extract the folder anywhere and it will still run. The users directory system is unlikely to be anything like your own. So make no assumptions and use relative, or no paths.
Easier to do than explain. There is ample support in the help file for building .exe and using the runtime.
|
|
|
Post by Brandon Parker on Feb 20, 2023 7:47:19 GMT -5
And, if you want to start thinking about automating the ZIP process, you can use Windows' (as long as you are on Windows) built-in 7-Zip to ZIP any and all files.
'Note that you should change the path to the 7-Zip application 'if it is located in a different spot on your computer 'Run "C:\Program Files\7-Zip\7z.exe a File_Path_And_Folder_Name.zip File_Or_Folder_To_Zip*", HIDE
7-zip actually has a good help file that is included in its own folder structure
{:0)
Brandon Parker
|
|
cundo
Full Member
Muchas Gracias!!
Posts: 146
|
Post by cundo on Feb 20, 2023 17:42:04 GMT -5
John did great tools, and IIRC that one uses 7zip. I might have it... somewhere.
|
|