Posts: 2
Threads: 1
Joined: Dec 2014
11 Dec 2014, 11:40
Hello,
I try to build frame buffer sample and it works good, so I could start application from Xcode 6.1.
But if I try to start outside of Xcode, program can't load any resources. I checked application package and, of course, no resources inside. I wonder how to package application for distribution ? Do you have any methods to set one (or several ) paths to resources ?
Posts: 101
Threads: 35
Joined: Mar 2013
11 Dec 2014, 13:16
(This post was last modified: 11 Dec 2014, 13:19 by Ketschak.)
Hi,
The Pong reloaded tutorial contains a short description about deployment. The individual steps are:
- Switch the scheme to release configuration.
- Create a resouce package main.murlpkg from the resource directory main.murlres. This can e.g. be done by using the Dashboard and the command Project -> Resource Packer build
- Then add the created resource package main.murlpkg to the project bundle.
Please see also
tut0106_pong_reloaded.php#tut0106OSXDeployment
The
Murl::IEngineConfiguration::SetPreferredResourcePackageType method can be used to globally change the preferred package type (
*.murlres or
*.murlpkg).
See also
tut0101_cube.php#tut0101ResourcePacker
The method
Murl::IEngineConfiguration::SetResourceFileCategory can be used to specify the working directory of the package loader.
See also
SetResourceFileCategory and
IEnums::FileCategory
Hope that helps. Good luck!
Posts: 2
Threads: 1
Joined: Dec 2014
11 Dec 2014, 14:50
Thank you very much. I definitely should start from first example.