[Gambas-user] i Build a RPM package but...
tsukuba GIMP user
tsukubagraduates at ...3482...
Sun Jul 12 11:48:52 CEST 2015
but if use "music = application.Path & "/music1.mp3"" when i build RPM package the file"/music1.mp3" will be added or not added?
(and i try use music = application.patch & "music1.mp3" it's will not working but "/music1.mp3" is working)
------------------ Original ------------------
From: "Tobias Boege";<taboege at ...626...>;
Date: Sun, Jul 12, 2015 05:28 PM
To: "mailing list for gambas users"<gambas-user at lists.sourceforge.net>;
Subject: Re: [Gambas-user] i Build a RPM package but...
On Sun, 12 Jul 2015, tsukuba GIMP user wrote:
> music = application.Path & "/.hidden/music1.mp3"
> this application.path is /usr/bin/.hidden or /usr/share/.hidden?(and i want to change /.hidden to /.musicfiles)
> ??my program in debug it's working but if build the RPM and I install it's not working because file not found...??
When you create an installation package, you will end up with an executable
archive of your project (*.gambas file) within it. This archive is a single
file which holds your entire project, but of course you can't use absolute
paths in the filesystem (as you did above) to access these files. If you
want to access a file which is located relative to your project directory,
then you have to use plain relative paths:
music = ".hidden/music1.mp3"
Also why is your data in ".hidden"? The .hidden directory, per wiki[0], is
the directory which specifically contains data which is NOT going into the
executable archive. You should put your music right into the project
directory (not into its subdirectories) and change
music = "music1.mp3"
Regards,
Tobi
[0] http://gambaswiki.org/wiki/doc/project_structure
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list