Hi!
I need to build 2 versions of a web-cgi
One, is for “production” and the other for “development/qa/tests”
Both versions are on the same server, so i need different cgi names.
Today i use the name as “MSI” and i want to compile both versions “MSI” and “DEVMSI”
Instead of doing manually, changing the Linux App Name before build, is there a way to do this using Xojo Scripts?
Best regards,
Alex
Sure. Check documentation for ide scripting.
Or later I can copy and paste you a sample script from one of our clients.
Here is what I use for a desktop app:
if ConstantValue("App.kMaxVersion") = "0" then
PropertyValue("App.MacOSXAppName") = "Mail Archiver X "
elseif ConstantValue("App.kMaxVersion") = "1" then
PropertyValue("App.MacOSXAppName") = "Mail Archiver X Pro "
else
print ConstantValue("App.kMaxVersion")
end if
The name of the property will be different.
Here our script:
[code]if PropertyValue(“App.MacOSXAppName”) = “Server” then
PropertyValue(“App.LinuxAppName”) = “FileServer”
PropertyValue(“App.Application Identifier”) = “de.xxx.FileServer”
call BuildApp(4)
PropertyValue(“App.LinuxAppName”) = “DataServer”
PropertyValue(“App.Application Identifier”) = “de.xxx.DataServer”
call BuildApp(4)
PropertyValue(“App.LinuxAppName”) = “UserServer”
PropertyValue(“App.Application Identifier”) = “de.xxx.UserServer”
call BuildApp(4)
PropertyValue(“App.LinuxAppName”) = “Server”
PropertyValue(“App.Application Identifier”) = “de.xxx.Server”
end if
// The buildType can be one of these values:
// 3 = Win32
// 4 = Linux
// 6 = OS X Carbon
// 7 = OS X Cocoa
[/code]
[quote=332864:@Christian Schmitz]Here our script:
[code]if PropertyValue(“App.MacOSXAppName”) = “Server” then
PropertyValue(“App.LinuxAppName”) = “FileServer”
PropertyValue(“App.Application Identifier”) = “de.xxx.FileServer”
call BuildApp(4)
PropertyValue(“App.LinuxAppName”) = “DataServer”
PropertyValue(“App.Application Identifier”) = “de.xxx.DataServer”
call BuildApp(4)
PropertyValue(“App.LinuxAppName”) = “UserServer”
PropertyValue(“App.Application Identifier”) = “de.xxx.UserServer”
call BuildApp(4)
PropertyValue(“App.LinuxAppName”) = “Server”
PropertyValue(“App.Application Identifier”) = “de.xxx.Server”
end if
// The buildType can be one of these values:
// 3 = Win32
// 4 = Linux
// 6 = OS X Carbon
// 7 = OS X Cocoa
[/code][/quote]
And how to setup Application Identifier via IDE Scripting?
(Build Settings / Shared / Build / Application Identifier)
Please read the script you quoted!