mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-14 13:27:05 +02:00
build_proton.sh: Do not package proton when building single component
This commit is contained in:
parent
b63199deff
commit
1708a87b49
@ -191,14 +191,6 @@ else
|
|||||||
STRIP='strip'
|
STRIP='strip'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "--release" ]; then
|
|
||||||
RELEASE_BUILD=1
|
|
||||||
INSTALL_PROGRAM_FLAGS='-s'
|
|
||||||
else
|
|
||||||
RELEASE_BUILD=1
|
|
||||||
INSTALL_PROGRAM_FLAGS=''
|
|
||||||
fi
|
|
||||||
|
|
||||||
BUILD_COMPONENTS='all'
|
BUILD_COMPONENTS='all'
|
||||||
if [ "$#" -ge 2 ]; then
|
if [ "$#" -ge 2 ]; then
|
||||||
for (( i=1; i <= $# - 1; i++)); do
|
for (( i=1; i <= $# - 1; i++)); do
|
||||||
@ -210,6 +202,22 @@ if [ "$#" -ge 2 ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PACKAGE=false
|
||||||
|
if [ "$BUILD_COMPONENTS" == "all" ]; then
|
||||||
|
PACKAGE=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
RELEASE_BUILD=1
|
||||||
|
INSTALL_PROGRAM_FLAGS=''
|
||||||
|
for param in "$@"; do
|
||||||
|
if [ "$param" == "--release" ]; then
|
||||||
|
RELEASE_BUILD=1
|
||||||
|
INSTALL_PROGRAM_FLAGS='-s'
|
||||||
|
elif [ "$param" == "--package" ]; then
|
||||||
|
PACKAGE=true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
DST_DIR="$TOP/build/dist"
|
DST_DIR="$TOP/build/dist"
|
||||||
TOOLS_DIR64="$TOP/build/tools.win64"
|
TOOLS_DIR64="$TOP/build/tools.win64"
|
||||||
TOOLS_DIR32="$TOP/build/tools.win32"
|
TOOLS_DIR32="$TOP/build/tools.win32"
|
||||||
@ -442,6 +450,7 @@ case "$BUILD_COMPONENTS" in
|
|||||||
*) echo "Invalid build components: $BUILD_COMPONENTS" ;;
|
*) echo "Invalid build components: $BUILD_COMPONENTS" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ "$PACKAGE" = true ]; then
|
||||||
echo "Packaging..."
|
echo "Packaging..."
|
||||||
cd "$TOP"
|
cd "$TOP"
|
||||||
|
|
||||||
@ -459,3 +468,4 @@ fi
|
|||||||
date '+%s' > dist/version
|
date '+%s' > dist/version
|
||||||
|
|
||||||
echo "Proton ready in dist/"
|
echo "Proton ready in dist/"
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user