Changes between Version 63 and Version 64 of BuildAndDeploymentEnvironment
- Timestamp:
- Aug 31, 2022, 4:48:19 AM (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildAndDeploymentEnvironment
v63 v64 160 160 set -ev # exit on error, be verbose 161 161 162 #WORK_DIR= 162 163 #ABS_PATH_SRC_ROOT=/0ad 164 165 if [ -z "${WORK_DIR}" ]; then 166 echo "set the work dir!" 167 exit 1 168 fi 163 169 164 170 if [ -z "${ABS_PATH_SRC_ROOT}" ]; then … … 169 175 cd $ABS_PATH_SRC_ROOT 170 176 171 install -s binaries/system/pyrogenesis -Dt $ HOME/AppRun/usr/bin172 install -s binaries/system/ActorEditor -Dt $ HOME/AppRun/usr/bin177 install -s binaries/system/pyrogenesis -Dt ${WORK_DIR}/AppRun/usr/bin 178 install -s binaries/system/ActorEditor -Dt ${WORK_DIR}/AppRun/usr/bin 173 179 174 180 # This loop uses 'patchelf', which may not be installed on some distros. … … 176 182 # TODO: add code here to check for the existence of 'patchelf' 177 183 178 cd $ HOME/AppRun/usr/bin184 cd ${WORK_DIR}/AppRun/usr/bin 179 185 180 186 for lib in libmozjs78-ps-release.so \ … … 191 197 cd $ABS_PATH_SRC_ROOT 192 198 193 install binaries/system/libCollada.so -Dt $ HOME/AppRun/usr/lib194 install build/resources/0ad.appdata.xml -Dt $ HOME/AppRun/usr/share/appdata195 install build/resources/0ad.desktop -Dt $ HOME/AppRun/usr/share/applications196 install build/resources/0ad.png -Dt $ HOME/AppRun/usr/share/pixmaps197 198 mkdir -p $ HOME/AppRun/usr/data/config199 cp -a binaries/data/config/default.cfg $ HOME/AppRun/usr/data/config200 201 cp -a binaries/data/l10n $ HOME/AppRun/usr/data199 install binaries/system/libCollada.so -Dt ${WORK_DIR}/AppRun/usr/lib 200 install build/resources/0ad.appdata.xml -Dt ${WORK_DIR}/AppRun/usr/share/appdata 201 install build/resources/0ad.desktop -Dt ${WORK_DIR}/AppRun/usr/share/applications 202 install build/resources/0ad.png -Dt ${WORK_DIR}/AppRun/usr/share/pixmaps 203 204 mkdir -p ${WORK_DIR}/AppRun/usr/data/config 205 cp -a binaries/data/config/default.cfg ${WORK_DIR}/AppRun/usr/data/config 206 207 cp -a binaries/data/l10n ${WORK_DIR}/AppRun/usr/data 202 208 203 209 # IMPORTANT: If you're creating the image from a distribution archive, this should copy … … 207 213 # pyromod archive builder. It's recommended to create the two zip files 208 214 # in a directory outside of the AppRun folder, in case you need to remove 209 # the AppRun folder, and then copy them to $ HOME/AppRun/usr/data215 # the AppRun folder, and then copy them to ${WORK_DIR}/AppRun/usr/data 210 216 # see https://trac.wildfiregames.com/wiki/Modding_Guide#Distributingyourmods 211 217 # 212 cp -a binaries/data/mods $ HOME/AppRun/usr/data218 cp -a binaries/data/mods ${WORK_DIR}/AppRun/usr/data 213 219 214 220 # Remove any symlinks to mods that may be in binaries/data/mods (this will cause 0ad to crash … … 217 223 }}} 218 224 219 Note that binaries/system{libmoz*,libnv*} will be moved into the AppRun folder automatically when linuxdeploy is run below.220 221 Change the Exec line in $ HOME/AppRun/usr/share/applications/0ad.desktop to `pyrogenesis` and also change the Exec line for Atlas.225 Note that binaries/system{libmoz*,libnv*} will be moved into the ${WORK_DIR}/AppRun folder automatically when linuxdeploy is run below. 226 227 Change the Exec line in ${WORK_DIR}/AppRun/usr/share/applications/0ad.desktop to `pyrogenesis` and also change the Exec line for Atlas. 222 228 223 229 Get a copy of [https://github.com/linuxdeploy/linuxdeploy/releases linuxdeploy] (you can use `wget` to get the desired release/arch). … … 226 232 227 233 {{{ 228 cd $ HOME234 cd ${WORK_DIR} 229 235 230 236 linuxdeploy -d AppRun/usr/share/applications/0ad.desktop \ … … 238 244 Other Notes: 239 245 240 To test any changes you want to make to the appimage, or for debugging, you can make changes inside the ' AppRun' folder, then cd back to the base 'AppRun' folderand enter `./AppRun`. When satisfied, repeat the "Create image" step above.246 To test any changes you want to make to the appimage, or for debugging, you can make changes inside the '${WORK_DIR}/AppRun' folder, then cd back to '${WORK_DIR}/AppRun' and enter `./AppRun`. When satisfied, repeat the "Create image" step above. 241 247 242 248 To use the --writableRoot option with the 0ad appimage, it must be extracted by providing the --appimage-extract option to the 0ad appimage. Then cd into squashfs-root, and type in `./AppRun --writableRoot`.