mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-22 06:02:04 +02:00
Let install scripts handle installing steamshim
This commit is contained in:
parent
ce21a5b23c
commit
8b63e08a9d
5 changed files with 26 additions and 3 deletions
|
@ -33,6 +33,11 @@ get_dep libbsd
|
||||||
get_dep tinfo
|
get_dep tinfo
|
||||||
get_dep readline
|
get_dep readline
|
||||||
|
|
||||||
|
if [ -n "$3" ]; then
|
||||||
|
echo "Copying steam_api..."
|
||||||
|
cp "$3/libsteam_api.so" "${MESON_INSTALL_PREFIX}/usr/lib"
|
||||||
|
fi
|
||||||
|
|
||||||
cp ${MESON_INSTALL_PREFIX}/share/mkxp-z/* ${MESON_INSTALL_PREFIX}
|
cp ${MESON_INSTALL_PREFIX}/share/mkxp-z/* ${MESON_INSTALL_PREFIX}
|
||||||
rm -rf ${MESON_INSTALL_PREFIX}/share
|
rm -rf ${MESON_INSTALL_PREFIX}/share
|
||||||
$2 ${MESON_INSTALL_PREFIX}
|
$2 ${MESON_INSTALL_PREFIX}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
install_data('AppRun')
|
install_data('AppRun')
|
||||||
install_data('mkxp-z.png')
|
install_data('mkxp-z.png')
|
||||||
install_data('mkxp-z.desktop')
|
install_data('mkxp-z.desktop')
|
||||||
meson.add_install_script('make_appimg.sh', 'mkxp-z', get_option('appimagekit_path'))
|
|
||||||
|
swarg = ''
|
||||||
|
if steamworks == true
|
||||||
|
swarg = steam_libpath
|
||||||
|
endif
|
||||||
|
meson.add_install_script('make_appimg.sh', meson.project_name(), get_option('appimagekit_path'), swarg)
|
||||||
|
|
|
@ -3,4 +3,10 @@
|
||||||
EXE=${MESON_INSTALL_PREFIX}/Contents/MacOS/mkxp-z
|
EXE=${MESON_INSTALL_PREFIX}/Contents/MacOS/mkxp-z
|
||||||
install_name_tool -add_rpath "@executable_path/../libs" $EXE
|
install_name_tool -add_rpath "@executable_path/../libs" $EXE
|
||||||
|
|
||||||
macpack -v $EXE
|
macpack $EXE
|
||||||
|
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
echo "Setting up steam_api manually..."
|
||||||
|
cp "$1/libsteam_api.dylib" "${MESON_INSTALL_PREFIX}/Contents/libs"
|
||||||
|
install_name_tool -change "@loader_path/libsteam_api.dylib" "@executable_path/../libs/libsteam_api.dylib" $EXE
|
||||||
|
fi
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
install_data('icon.icns', install_dir: 'Contents/Resources')
|
install_data('icon.icns', install_dir: 'Contents/Resources')
|
||||||
install_data('Info.plist', install_dir: 'Contents')
|
install_data('Info.plist', install_dir: 'Contents')
|
||||||
meson.add_install_script('macpack.sh')
|
|
||||||
|
swarg = ''
|
||||||
|
if steamworks == true
|
||||||
|
swarg = steam_libpath
|
||||||
|
endif
|
||||||
|
|
||||||
|
meson.add_install_script('macpack.sh', swarg)
|
||||||
|
|
|
@ -19,4 +19,5 @@ option('workdir_current', type: 'boolean', value: false, description: 'Keep curr
|
||||||
option('static_executable', type: 'boolean', value: false, description: 'Build a static executable (Windows-only)')
|
option('static_executable', type: 'boolean', value: false, description: 'Build a static executable (Windows-only)')
|
||||||
option('independent_appimage', type: 'boolean', value: true, description: 'Set current directory to the original location of the AppImage when contained within one')
|
option('independent_appimage', type: 'boolean', value: true, description: 'Set current directory to the original location of the AppImage when contained within one')
|
||||||
option('steamworks_path', type: 'string', value: '', description: 'Path to Steamshim')
|
option('steamworks_path', type: 'string', value: '', description: 'Path to Steamshim')
|
||||||
|
option('steam_appid', type: 'string', value: '', description: 'Steam AppID. Set this to use SteamAPI_RestartAppIfNecessary')
|
||||||
option('appimagekit_path', type: 'string', value: '', description: 'Path to AppImageKit, used for building AppImages')
|
option('appimagekit_path', type: 'string', value: '', description: 'Path to AppImageKit, used for building AppImages')
|
||||||
|
|
Loading…
Add table
Reference in a new issue