diff options
author | rubidium <rubidium@openttd.org> | 2009-08-22 16:07:39 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-08-22 16:07:39 +0000 |
commit | 1c8c6090d0eefd9a965b062d12836e76fca8152e (patch) | |
tree | e9ee4a1fd7ad737a453cfa34cd716f99f4e8e183 | |
parent | 5a76fb568604db9cee6e627a8be519774d430b82 (diff) | |
download | openttd-1c8c6090d0eefd9a965b062d12836e76fca8152e.tar.xz |
(svn r17261) -Fix (r17214): don't forget to package the compatability wrapper scripts
-rw-r--r-- | Makefile.bundle.in | 6 | ||||
-rw-r--r-- | os/win32/installer/install.nsi | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.bundle.in b/Makefile.bundle.in index 2e57767fd..8fd1b898f 100644 --- a/Makefile.bundle.in +++ b/Makefile.bundle.in @@ -29,10 +29,12 @@ endif # An OSX application bundle needs the data files, lang files and openttd executable in a different location. ifdef OSXAPP +AI_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/ai DATA_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/data LANG_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/lang TTD_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/MacOS else +AI_DIR = $(BUNDLE_DIR)/ai DATA_DIR = $(BUNDLE_DIR)/data LANG_DIR = $(BUNDLE_DIR)/lang TTD_DIR = $(BUNDLE_DIR) @@ -42,6 +44,7 @@ bundle: all @echo '[BUNDLE] Constructing bundle' $(Q)rm -rf "$(BUNDLE_DIR)" $(Q)mkdir -p "$(BUNDLE_DIR)" + $(Q)mkdir -p "$(BUNDLE_DIR)/ai" $(Q)mkdir -p "$(BUNDLE_DIR)/docs" $(Q)mkdir -p "$(BUNDLE_DIR)/media" $(Q)mkdir -p "$(BUNDLE_DIR)/scripts" @@ -57,6 +60,7 @@ ifdef OSXAPP $(Q)cp "$(ROOT_DIR)/os/macosx/splash.png" "$(DATA_DIR)" endif $(Q)cp "$(BIN_DIR)/$(TTD)" "$(TTD_DIR)/" + $(Q)cp "$(BIN_DIR)/ai/"compat_*.nut "$(AI_DIR)/" $(Q)cp "$(BIN_DIR)/data/"*.grf "$(DATA_DIR)/" $(Q)cp "$(BIN_DIR)/data/"*.obg "$(DATA_DIR)/" $(Q)cp "$(BIN_DIR)/data/"*.obs "$(DATA_DIR)/" @@ -159,6 +163,7 @@ install: bundle $(Q)install -d "$(INSTALL_BINARY_DIR)" $(Q)install -d "$(INSTALL_ICON_DIR)" $(Q)install -d "$(INSTALL_DATA_DIR)/gm" + $(Q)install -d "$(INSTALL_DATA_DIR)/ai" $(Q)install -d "$(INSTALL_DATA_DIR)/data" $(Q)install -d "$(INSTALL_DATA_DIR)/lang" $(Q)install -d "$(INSTALL_DATA_DIR)/scripts" @@ -169,6 +174,7 @@ else $(Q)install -m 755 "$(BUNDLE_DIR)/$(TTD)" "$(INSTALL_BINARY_DIR)/${BINARY_NAME}" endif $(Q)install -m 644 "$(BUNDLE_DIR)/lang/"* "$(INSTALL_DATA_DIR)/lang" + $(Q)install -m 644 "$(BUNDLE_DIR)/ai/"* "$(INSTALL_DATA_DIR)/ai" $(Q)install -m 644 "$(BUNDLE_DIR)/data/"* "$(INSTALL_DATA_DIR)/data" $(Q)install -m 644 "$(BUNDLE_DIR)/scripts/"* "$(INSTALL_DATA_DIR)/scripts" $(Q)install -m 644 "$(BUNDLE_DIR)/docs/"* "$(INSTALL_DOC_DIR)" diff --git a/os/win32/installer/install.nsi b/os/win32/installer/install.nsi index 4863037ef..69534505a 100644 --- a/os/win32/installer/install.nsi +++ b/os/win32/installer/install.nsi @@ -106,6 +106,10 @@ Section "!OpenTTD" Section1 SetOutPath "$INSTDIR\lang\" File ${PATH_ROOT}bin\lang\*.lng + ; Copy AI files + SetOutPath "$INSTDIR\ai\" + File ${PATH_ROOT}bin\ai\compat_*.nut + ; Copy data files SetOutPath "$INSTDIR\data\" File ${PATH_ROOT}bin\data\*.grf @@ -298,6 +302,9 @@ Section "Uninstall" Delete "$INSTDIR\cached_sprites.*" Delete "$INSTDIR\save\autosave\network*.tmp" ; temporary network file + ; AI files + Delete "$INSTDIR\ai\compat_*.nut" + ; Data files Delete "$INSTDIR\data\opntitle.dat" |