Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sun May 19, 2013 11:28 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ren'Py support questions should go here. This forum is for discussing changes to Ren'Py itself.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Jun 06, 2012 9:50 am 
Regular
User avatar

Joined: Wed May 06, 2009 3:42 am
Posts: 25
Location: France - Strasbourg
Hi,

Would be great to add :
Code:
chmod u+x -R "`dirname \"$0\"`/lib/"

before the last "exec" line.

Zip files does not store exec flags. Wouldn't it be better to tell the user to check the "enable execution of the file as a program" on the launcher ".sh" than to say him to make a chown -R 755 or do it manually with the GUI?

the launcher ".sh" file would then be :
Code:
#!/bin/sh

# We assume Darwin means Mac OS X. Sorry, Darwin guys.
if [ "x`uname -s`" = "xDarwin" ]; then
  dir=`dirname "$0"`
  dir=`cd "$dir"; pwd`
  base=`basename "$0"`

  export RENPY_LAUNCHER_DIR="$dir"

  if [ -e "$dir/${base%.sh}.app/Contents/MacOS/${base%.sh}" ] ; then
      launcher="$dir/${base%.sh}.app/Contents/MacOS/${base%.sh}"
  else
      launcher="$dir/${base%.sh}.app/Contents/MacOS/Ren'Py Launcher"
  fi

  exec "$launcher" "${0%.sh}.py" "$@"
fi

chmod u+x -R "`dirname \"$0\"`/lib/"
exec "`dirname \"$0\"`/lib/python" "-OO" "${0%.sh}.py" "$@"


Top
 Profile Send private message  
 
PostPosted: Wed Jun 06, 2012 10:26 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10770
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
Keul wrote:
Zip files does not store exec flags.


The format supports it, and the zip files generated by Ren'Py should set the executable bit in the appropriate places. Are you having problems with this?

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Wed Jun 06, 2012 3:00 pm 
Regular
User avatar

Joined: Wed May 06, 2009 3:42 am
Posts: 25
Location: France - Strasbourg
I have a custom icon for the .exe, so I re-compress it with 7z, who isn't able to set it under windows :/


Top
 Profile Send private message  
 
PostPosted: Wed Jun 06, 2012 3:46 pm 
Regular
User avatar

Joined: Thu May 03, 2012 3:46 pm
Posts: 103
Location: Milton Keynes, UK
Projects: Past Mistakes
Organization: Freya's Aett
If your web-server is Linux based, you can upload the contents of the zip and compress it on the server.

Alternatively, assuming you don't want to dual-boot, I think you could just install Cygwin and compress it from the command line.

_________________
Recent work - iSchool Dreams: First Semester / iSchool Dreams: My Valentine (iPhone / iPad, dating sims)


Top
 Profile Send private message  
 
PostPosted: Thu Oct 11, 2012 5:59 am 
Regular
User avatar

Joined: Wed May 06, 2009 3:42 am
Posts: 25
Location: France - Strasbourg
I was using ressource editors to change the icons but I found a simpler solution:
http://www.renpy.org/wiki/renpy/doc/FAQ ... s_icons.3F


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group