Problem with b12 and RB

Stan Busk maxprog at mac.com
Tue Jan 13 17:45:16 CST 2009


Hi,

I have made more tests. Same file opened with my application on my  
development computer and on a clean MacBook throw very different query  
results. Definitely there is something wrong with the script or  
something. On my development computer everything seems to work  
properly. On the MacBook where Valentina has never been installed,  
query results are wrong in most places.

There is an exception, on both machines, exporting and importing back  
an XML dump results in an empty database.

Anybody can help me? I need a solution as fast as possible.

Stan

> Hi,
>
> Is there something new with b12 to prepare a RB made application for
> distribution?
> I released a new version of one of my applications today and I get
> crazy reports of people not getting the right results for very simple
> queries. Right now I am looking at some files they sent to me and they
> work fine here, reason why I don't know if it is a problem with b12 or
> a problem with the way I have created the distribution.
>
> I am using the following script:
>
> #! /bin/sh
>
> #####################################
> # PREPARE variables:
> #
> app=$1
> app_vcomp="$app"Contents/vcomponents
>
>
> #####################################
> # COPY files of vcomponents into APP.
> #####################################
>
> if [ ! -d "$app_vcomp" ] ; then
> 	mkdir "$app_vcomp"
> fi
>
> if [ ! -e "$app_vcomp"/libvshared_fat_release.dylib ] ; then
> 	cp /usr/local/lib/vcomponents/libvshared_fat_release.dylib
> 	"$app_vcomp"
> fi
>
> if [ ! -e "$app_vcomp"/libvkernel_fat_release.dylib ] ; then
> 	cp /usr/local/lib/vcomponents/libvkernel_fat_release.dylib
> 	"$app_vcomp"
> fi
>
> if [ ! -e "$app_vcomp"/libvclient_fat_release.dylib ] ; then
> 	cp /usr/local/lib/vcomponents/libvclient_fat_release.dylib
> 	"$app_vcomp"
> fi
>
> #
> # Copy Folders:
> #
> if [ ! -d "$app_vcomp"/VSDK.framework ] ; then
> 	cp -R /usr/local/lib/vcomponents/VSDK.framework				"$app_vcomp"
> fi
>
> cp -R /usr/local/lib/vcomponents/vresources 					"$app_vcomp"
>
>
> #####################################
> # CHANGE executable_path for engine dylibs:
> #####################################
>
> 	# change id of VSHARED
> 	install_name_tool -id "@executable_path/../vcomponents/
> libvshared_fat_release.dylib" "$app_vcomp"/ 
> libvshared_fat_release.dylib
>
> 	# change id of VKERNEL
> 	install_name_tool -id "@executable_path/../vcomponents/
> libvkernel_fat_release.dylib" "$app_vcomp"/ 
> libvkernel_fat_release.dylib
>
> 	install_name_tool -change "/usr/local/lib/vcomponents/
> libvshared_fat_release.dylib"   "@executable_path/../vcomponents/
> libvshared_fat_release.dylib" 	"$app_vcomp"/ 
> libvkernel_fat_release.dylib
> 	install_name_tool -change "/usr/local/lib/vcomponents/VSDK.framework/
> Versions/A/VSDK" "@executable_path/../vcomponents/VSDK.framework/
> Versions/A/VSDK" 	"$app_vcomp"/libvkernel_fat_release.dylib
>
> 	# change id of VCLIENT
> 	install_name_tool -id "@executable_path/../vcomponents/
> libvclient_fat_release.dylib" "$app_vcomp"/ 
> libvclient_fat_release.dylib
> 	install_name_tool -change "/usr/local/lib/vcomponents/
> libvshared_fat_release.dylib" "@executable_path/../vcomponents/
> libvshared_fat_release.dylib" "$app_vcomp"/ 
> libvclient_fat_release.dylib
>
>
> 	# change if of VSDK.framework
>     install_name_tool -id "@executable_path/../vcomponents/
> VSDK.framework/Versions/A/VSDK" "$app_vcomp"/VSDK.framework/Versions/ 
> A/
> VSDK
>
>
> #####################################
> # now we need update yet App/Contents/Frameworks/V4RB.rbx_0_xxx.dylib
> # REALBasic can assign any digits xxx, so we use globbing (regex) here
> to locate file.
> #####################################
> app_frmws="$app"Contents/Frameworks
>
> for file in "$app_frmws"/V4RB*
> do
> 	v4rb_dylib=$file
> 	break
> done
>
> 	#
> 	# now we can change paths:
> 	#
> 	install_name_tool -change "/usr/local/lib/vcomponents/
> libvshared_fat_release.dylib" 	"@executable_path/../vcomponents/
> libvshared_fat_release.dylib" 		"$v4rb_dylib"
> 	install_name_tool -change "/usr/local/lib/vcomponents/
> libvkernel_fat_release.dylib" 	"@executable_path/../vcomponents/
> libvkernel_fat_release.dylib" 		"$v4rb_dylib"
> 	install_name_tool -change "/usr/local/lib/vcomponents/
> libvclient_fat_release.dylib" 	"@executable_path/../vcomponents/
> libvclient_fat_release.dylib" 		"$v4rb_dylib"
>
> 	install_name_tool -change "/usr/local/lib/vcomponents/VSDK.framework/
> Versions/A/VSDK" 	"@executable_path/../vcomponents/VSDK.framework/
> Versions/A/VSDK" 	"$v4rb_dylib"
>
>
> Stan
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list