0
0
mirror of https://github.com/minecraft-linux/appimage-builder.git synced 2025-04-14 10:34:11 +00:00
Files
Christopher Homberger 6d8e947abe Test debs for old debian
2020-03-11 18:04:31 +01:00

55 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
source common.sh
QUIRKS_FILE=
OS_NAME=
while getopts "h?q:j:o:" opt; do
case "$opt" in
h|\?)
echo "build.sh"
echo "-j Specify the number of jobs (the -j arg to make)"
echo "-q Specify the quirks file"
echo "-o Specify the OS name"
exit 0
;;
j) MAKE_JOBS=$OPTARG
;;
q) QUIRKS_FILE=$OPTARG
;;
o) OS_NAME=$OPTARG
;;
esac
done
load_quirks "$QUIRKS_FILE"
create_build_directories
call_quirk init
show_status "Downloading sources"
download_repo msa https://github.com/minecraft-linux/msa-manifest.git
download_repo mcpelauncher https://github.com/ChristopherHX/mcpelauncher-manifest.git
#download_repo mcpelauncher-extract https://github.com/minecraft-linux/mcpelauncher-extract.git
call_quirk build_start
reset_cmake_options
add_cmake_options -DENABLE_MSA_GTK_UI=ON -DMSA_UI_PATH_DEV=OFF
add_cmake_options -DDEB_OS_NAME=$OS_NAME
call_quirk build_msa
build_component msa
install_component_cpack msa
reset_cmake_options
add_cmake_options -DDEB_OS_NAME=$OS_NAME
call_quirk build_mcpelauncher
build_component mcpelauncher
install_component_cpack mcpelauncher
#reset_cmake_options
#add_cmake_options -DDEB_OS_NAME=$OS_NAME
#build_component mcpelauncher-extract
#install_component_cpack mcpelauncher-extract
cleanup_build