PDA

View Full Version : Bundle is not adding files



Victor Pavlov
27-11-2015, 13:41
The bundle does not add additional files to the EXE pack.
Generally it is included in the script (using #BUNDLE File), but the size of the resulting EXE does not change, so it is clear that file is not added. Checked with small and big jpg/png files to verify compression.

The included sample TImage is just the clear way to check it.
IDE running is OK
EXE pack in the same folder is OK
EXE pack on different computer fails with "beep", no image is found in Application Folder.

Please advice how can we add additional files to our project.
Adding second package if not the best way, but we can do it with WinRAR if this functionality will not work.

ErosOlmi
27-11-2015, 13:46
Hi Victor,

Bundling process has recently completely changed compared to previous thinBasic versions.
At the moment only thinBasic modules needed by the the script are included automatically.
Adding additional files is not supported.

But I will work on this.

Victor Pavlov
27-11-2015, 14:20
I can help you on testing and/or development.

Victor Pavlov
Microinvest

ErosOlmi
27-11-2015, 18:37
OK, thank you.
I will post here when something to test.

ErosOlmi
11-12-2015, 00:21
I have #BUNDLE FILE ... almost done.

Syntax will be the following:


'---Add additional files
#BUNDLE File "ID", "SourceFile", "DestinationPath" [, DeleteOnClose="0", ExtractOnRun="1", ReplaceExisting="0", CreateFullPath="0"]


After #BUNDLE File ... there will be:


optional file ID. If empty an auto-numeration FILEXXXX will be generated
Source full path and file name (relative path to current script is supported)
Destination path
up to 4 optional parameters. If not specified default values will be used

DeleteOnClose. If 1, file will be deleted after script execution. Default = 1
ExtractOnRun. If 1, file will be extracted on disk before script execution. Default = 1
ReplaceExisting. If 1, file extraction will replace already existing file with the same name. Default = 0
CreateFullPath. If1, if destination path does not exists will be created otherwise file will not be extracted. Default = 1



Example:


'---Add additional files
#BUNDLE File "MyID", ".\MyFirstApplication_DB.accdb", "", DeleteOnClose="0", ExtractOnRun="1", ReplaceExisting="0", CreateFullPath="0"
#BUNDLE File "", ".\MyFirstApplication_Excel.xlsx", ""
#BUNDLE File "", ".\MyFirstApplication_DB_1.1.2.sql", ".\DB\SQL\", DeleteOnClose="0", ExtractOnRun="1", ReplaceExisting="1", CreateFullPath="1"





Any suggestion?
Any file type to test?

ReneMiner
11-12-2015, 00:35
Can we also simply select complete subfolders of app_scriptpath (containing resources as media, fonts, themes etc.) to be part of the bundle?

ErosOlmi
11-12-2015, 00:50
Yes I thought about that but maybe it will come later when single file bundling will be stabilized.
I still have to add and fix many aspects and going into adding full directories and sub directories is quite complex at this stage.

Anyway, thanks

ReneMiner
11-12-2015, 12:02
ok. :)
seperate idea about this:

http://www.thinbasic.com/community/showthread.php?12627-zLib-archives&p=92451#post92451