Script to install Valentina after a Xojo?
Beatrix Willius
bwillius at gmx.de
Sat Oct 26 08:02:30 CDT 2013
Sure, here it is:
dim CountSlashes as Integer = CountFields(ProjectShellPath, "/")
dim ProjectName as string = NthField(ProjectShellPath, "/", CountSlashes)
dim ProjectPath as String = Left(ProjectShellPath, Len(ProjectShellPath) - Len(ProjectName))
dim cmd as String= ProjectPath + "Contents/INSTALL_VCOMPONENTS_V4RB"
cmd = cmd + " " + CurrentBuildLocation + "/" + getShellString(CurrentBuildAppName) + ".app" + "/"
dim theOutput as string = doShellCommand(cmd)
if theOutput <> "" then print theOutput
function getShellString(theString as String) as string
Return ReplaceAll(theString, " ", "\ ")
end Function
The install script is in a folder Contents/INSTALL_VCOMPONENTS_V4RB next to the project file.
On 26.10.2013, at 14:33, jda <jda at his.com> wrote:
> You have a script for adding Valentina to Xojo app bundles, but it has to be invoked in Terminal (on the Mac). I wonder, have you or anyone at Paradigma written a version that can be included in a Xojo project so it can be run automatically once the build is complete?
Mit freundlichen Grüßen/Regards
Trixi Willius
http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
More information about the Valentina
mailing list