mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-28 07:35:50 +03: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,20 +450,22 @@ case "$BUILD_COMPONENTS" in
|
|||||||
*) echo "Invalid build components: $BUILD_COMPONENTS" ;;
|
*) echo "Invalid build components: $BUILD_COMPONENTS" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "Packaging..."
|
if [ "$PACKAGE" = true ]; then
|
||||||
cd "$TOP"
|
echo "Packaging..."
|
||||||
|
cd "$TOP"
|
||||||
|
|
||||||
#the difference between -1 and -9 is about 20 MB, so prioritize quick startup over file size
|
#the difference between -1 and -9 is about 20 MB, so prioritize quick startup over file size
|
||||||
tar -C build/dist -c . | gzip -c -1 > dist/proton_dist.tar.gz
|
tar -C build/dist -c . | gzip -c -1 > dist/proton_dist.tar.gz
|
||||||
|
|
||||||
cp -a toolmanifest.vdf dist/
|
cp -a toolmanifest.vdf dist/
|
||||||
cp -a filelock.py dist/
|
cp -a filelock.py dist/
|
||||||
cp -a proton dist/
|
cp -a proton dist/
|
||||||
if [ "$PLATFORM" == "Darwin" ]; then
|
if [ "$PLATFORM" == "Darwin" ]; then
|
||||||
cp -a LICENSE.osx dist/LICENSE
|
cp -a LICENSE.osx dist/LICENSE
|
||||||
else
|
else
|
||||||
cp -a LICENSE.lin dist/LICENSE
|
cp -a LICENSE.lin dist/LICENSE
|
||||||
fi
|
fi
|
||||||
date '+%s' > dist/version
|
date '+%s' > dist/version
|
||||||
|
|
||||||
echo "Proton ready in dist/"
|
echo "Proton ready in dist/"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user