Jan 25, 2022 Replies: 3 We can use #CustomBuildAction to archive some files and folders into a ZIP or RAR file (if you have WinRAR installed). B4X: Copy #If RELEASE #CustomBuildAction: 2, C:\Program Files\WinRAR\WinRAR.exe, a upload.zip www *.jar *.ini *.db help.html help.js comments.txt #End If You can change upload.zip to other file name such as publish.rar and WinRAR will automatically archive the file using the format specified in the extension. You may however explicitly specify the file format using "-afzip" for zip file but it is optional. RAR format produces a bit smaller file size and allows us to add comments to the archive from a text file. B4X: Copy #If RELEASE #CustomBuildAction: 2, C:\Program Files\WinRAR\WinRAR.exe, a -afrar publish.rar www *.jar *.ini *.db help.html help.js -czcomments.txt #End If You may want to read the WinRAR manual for the full commands list. Thanks to @tchart for a great tutorial on CustomBuildAction for B4J https://www.b4x.com/android/forum/threads/using-custombuildaction-to-your-advantage.72945/ Last edited: Jan 25, 2022 Click to expand...
We can use #CustomBuildAction to archive some files and folders into a ZIP or RAR file (if you have WinRAR installed). B4X: Copy #If RELEASE #CustomBuildAction: 2, C:\Program Files\WinRAR\WinRAR.exe, a upload.zip www *.jar *.ini *.db help.html help.js comments.txt #End If You can change upload.zip to other file name such as publish.rar and WinRAR will automatically archive the file using the format specified in the extension. You may however explicitly specify the file format using "-afzip" for zip file but it is optional. RAR format produces a bit smaller file size and allows us to add comments to the archive from a text file. B4X: Copy #If RELEASE #CustomBuildAction: 2, C:\Program Files\WinRAR\WinRAR.exe, a -afrar publish.rar www *.jar *.ini *.db help.html help.js -czcomments.txt #End If You may want to read the WinRAR manual for the full commands list. Thanks to @tchart for a great tutorial on CustomBuildAction for B4J https://www.b4x.com/android/forum/threads/using-custombuildaction-to-your-advantage.72945/
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2022 #2 It should also be simple to turn it into a comment link. Example: https://www.b4x.com/android/forum/threads/b4x-comment-link-to-build-b4xlib.119934/#content
It should also be simple to turn it into a comment link. Example: https://www.b4x.com/android/forum/threads/b4x-comment-link-to-build-b4xlib.119934/#content
aeric Expert Licensed User Longtime User Jan 25, 2022 #3 Erel said: It should also be simple to turn it into a comment link. Example: https://www.b4x.com/android/forum/threads/b4x-comment-link-to-build-b4xlib.119934/#content Click to expand... With a few minutes trial-and-error: B4X: Copy 'Click to create Publish.zip: ide://run?file=%JAVABIN%\jar.exe&WorkingDirectory=../Objects&Args=-cMf&Args=Publish.zip&Args=www&Args=*.jar&Args=*.ini&Args=*.db&Args=help.html&Args=help.js&Args=comments.txt Thanks @Erel ?
Erel said: It should also be simple to turn it into a comment link. Example: https://www.b4x.com/android/forum/threads/b4x-comment-link-to-build-b4xlib.119934/#content Click to expand... With a few minutes trial-and-error: B4X: Copy 'Click to create Publish.zip: ide://run?file=%JAVABIN%\jar.exe&WorkingDirectory=../Objects&Args=-cMf&Args=Publish.zip&Args=www&Args=*.jar&Args=*.ini&Args=*.db&Args=help.html&Args=help.js&Args=comments.txt Thanks @Erel ?
aeric Expert Licensed User Longtime User Jan 26, 2022 #4 aeric said: With a few minutes trial-and-error: B4X: Copy 'Click to create Publish.zip: ide://run?file=%JAVABIN%\jar.exe&WorkingDirectory=../Objects&Args=-cMf&Args=Publish.zip&Args=www&Args=*.jar&Args=*.ini&Args=*.db&Args=help.html&Args=help.js&Args=comments.txt Thanks @Erel ? Click to expand... Using the comment link, WinRAR is not required.
aeric said: With a few minutes trial-and-error: B4X: Copy 'Click to create Publish.zip: ide://run?file=%JAVABIN%\jar.exe&WorkingDirectory=../Objects&Args=-cMf&Args=Publish.zip&Args=www&Args=*.jar&Args=*.ini&Args=*.db&Args=help.html&Args=help.js&Args=comments.txt Thanks @Erel ? Click to expand... Using the comment link, WinRAR is not required.