1. Jonathan Ashwell
  2. Valentina Database ADK
  3. Thursday, April 15 2021, 04:41 PM
  4.  Subscribe via email
I’m using the old build script install_vcomponents_v4rb_v7 and am running into some problems. Is there a newer version I missed? And I see that install_vreports just declared but not used in the script?
Comment
There are no comments made yet.
Jonathan Ashwell Accepted Answer
Thanks, Sergey, much appreciated.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 1
Sergey Pashkov Accepted Answer
Thank you, added these scripts to the installer.

Also, modified the script, so it is possible to choose VKernel, VClient and VReport individually.

For example, to copy VKernel only:
./install_vcomponents_v4rb_v9 My\ Application.app 64 1 0 0
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 2
Jonathan Ashwell Accepted Answer
I agree it should be included in the installer. No one is going to find it unless they read this forum.

I have another request. I don't need libvclient_fat_release, so I've modified the script like you did for VReports, with a new boolean property install_vclient.

if [[ $install_vclient = 1 && ! -e "$app_vcomp"/libvclient_fat_release$dllsuff.dylib ]] ; then
cp $sys_vcomp/libvclient_fat_release$dllsuff.dylib "$app_vcomp"

This will break with the next script update unless I remember to modify it again. It would be nice if the official script had the ability to exclude libvclient_fat_release_x64.dylib just like it has for VReports.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 3
Beatrix Willius Accepted Answer
Thanks, that solved the problem. The IDE script could be included in the installer, too.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 4
Sergey Pashkov Accepted Answer

getShellString(CurrentBuildAppName) + ".app/"


What if you remove the last slash?

getShellString(CurrentBuildAppName) + ".app"
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 5
Beatrix Willius Accepted Answer
Forgot: Valentina downloaded from website just now. Almost latest Xojo 2021r1.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 6
Beatrix Willius Accepted Answer
The latest script doesn't work at all. A screenshot of my result is below.

My IDE script:


'add valentina files

'prepare
dim CountSlashes as Integer = CountFields(ProjectShellPath, "/")
dim ProjectName as string = NthField(ProjectShellPath, "/", CountSlashes)
dim ProjectPath as String = Left(ProjectShellPath, Len(ProjectShellPath) - Len(ProjectName))

dim ProjectParent as string = NthField(ProjectPath, "/", CountSlashes - 1)
dim ProjectParentPath as String = Left(ProjectPath, Len(ProjectPath) - Len(ProjectParent) - 1)

dim cmd as String = ProjectParentPath + "Classes/Build\ Automation/install_vcomponents_v4rb_v9 " + CurrentBuildLocation + "/" + getShellString(CurrentBuildAppName) + ".app/"
cmd = cmd + " 64"

dim theOutput as string = doShellCommand(cmd)
if theOutPut <> "" and instr(theOutput, "warning") = 0 then print "Add Valentina Files: " + theOutput

function getShellString(theString as String) as string
theString = ReplaceAll(theString, " ", "\ ")
theString = ReplaceAll(theString, "&", "\&")
theString = ReplaceAll(theString, "(", "( ")
theString = ReplaceAll(theString, ")", ") ")
return theString
end Function
Attachments (2)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 7
Beatrix Willius Accepted Answer
Why don't you include the script in the installer for Valentina? I've just noticed that I had an old version. The search in the wiki didn't have any result. But I found this discussion here.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 8
Sergey Pashkov Accepted Answer
Updated the script:
- restored the use of the install_vreports variable
- changed vcomponents installation path to standard app/Contents/Framework
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 9
Jonathan Ashwell Accepted Answer
I see this is still in the script:

# YOU can change this to 0 to skip VREPORT.dll
install_vreports=1

But does it do anything? install_vreports isn't used again.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 10
Jonathan Ashwell Accepted Answer
Thanks Sergey.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 11
Sergey Pashkov Accepted Answer
Hello Jonathan,

There is an updated version of this script.
Scripts for different versions can be found in the deployment guide.
References
  1. https://valentina-db.com/docs/dokuwiki/v11/doku.php?id=valentina:products:adk:v4rb:manual:deployment:mac_ub
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 12
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories