Implement making of Mac tarballs in the scons recipe (untested).
This commit is contained in:
parent
ebd89a7237
commit
386ca0a4e5
2 changed files with 22 additions and 5 deletions
|
@ -35,7 +35,6 @@ w_preparefileinstall = if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
|||
*) f=$$p;; \
|
||||
esac;
|
||||
|
||||
# *** Not yet covered by scons recipe
|
||||
# Create Macintosh app bundle from the game
|
||||
bundle_contents=@PACKAGE_NAME@.app/Contents
|
||||
@PACKAGE@_bundle: src/@PACKAGE@
|
||||
|
@ -44,7 +43,6 @@ bundle_contents=@PACKAGE_NAME@.app/Contents
|
|||
echo "APPL????" > "$(bundle_contents)/PkgInfo"
|
||||
$(INSTALL_PROGRAM) $< "$(bundle_contents)/MacOS/@PACKAGE_NAME@"
|
||||
|
||||
# *** Not yet covered by scons recipe
|
||||
# Create Macintosh app bundle from the editor
|
||||
bundle_editor_contents=@PACKAGE_NAME@ Editor.app/Contents
|
||||
@PACKAGE@_editor_bundle: src/@PACKAGE@_editor
|
||||
|
|
25
SConstruct
25
SConstruct
|
@ -12,8 +12,7 @@
|
|||
# 2. Manual page formatting and installation
|
||||
# 3. Dummy locales
|
||||
# 4. Translations handling other than installation (pot-update).
|
||||
# 5. Construction of Apple application bundles.
|
||||
# 6. Making binary and data-only distribution tarballs
|
||||
# 5. Making binary and data-only distribution tarballs
|
||||
|
||||
import os, sys, commands, shutil, sets
|
||||
from SCons.Script import *
|
||||
|
@ -1005,7 +1004,7 @@ env.Command("manual.en.html", "manual.en.xml",
|
|||
'xsltproc --nonet /etc/asciidoc/docbook-xsl/xhtml.xsl "${SOURCE}" >"${TARGET}"')
|
||||
|
||||
#
|
||||
# Making a distribution.
|
||||
# Making a distribution tarball.
|
||||
#
|
||||
def manifest():
|
||||
"Get an argument list suitable for passing to a distribution archiver."
|
||||
|
@ -1026,6 +1025,26 @@ env.Append(TARFLAGS='-j --exclude=".svn" --exclude="~"',
|
|||
env.Clean(all, 'wesnoth.tar.bz2')
|
||||
env.Alias('dist', tarball)
|
||||
|
||||
#
|
||||
# Making Mac OS X application bundles
|
||||
#
|
||||
env.Command("Wesnoth.app", "wesnoth", [
|
||||
Mkdir("${TARGET}/Contents"),
|
||||
Mkdir("${TARGET}/Contents/MacOS"),
|
||||
Mkdir("${TARGET}/Contents/Resources"),
|
||||
Action('echo "APPL????" > "${TARGET}/Contents/PkgInfo"'),
|
||||
Copy("${TARGET}/Contents/MacOS", "wesnoth"),
|
||||
])
|
||||
env.Clean(all, "Wesnoth.app")
|
||||
env.Command("Wesnoth Editor.app", "wesnoth_editor", [
|
||||
Mkdir("${TARGET}/Contents"),
|
||||
Mkdir("${TARGET}/Contents/MacOS"),
|
||||
Mkdir("${TARGET}/Contents/Resources"),
|
||||
Action('echo "APPL????" > "${TARGET}/Contents/PkgInfo"'),
|
||||
Copy("${TARGET}/Contents/MacOS", "wesnoth_editor"),
|
||||
])
|
||||
env.Clean(all, "Wesnoth Editor.app")
|
||||
|
||||
#
|
||||
# Sanity checking
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue