Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alchemy
Third Party
3p-discord-rpc
Commits
31626614
Verified
Commit
31626614
authored
Oct 22, 2021
by
Xenny Heartsong
Browse files
This is all new to me. Send help.
parent
fc7f91ae
Pipeline
#1241
failed with stages
in 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
build-cmd.sh
View file @
31626614
...
...
@@ -9,15 +9,17 @@ set -e
# complain about unset env variables
set
-u
PROJECT
=
discord_rpc
if
[
-z
"
$AUTOBUILD
"
]
;
then
exit
1
fi
#
if [ "$OSTYPE" = "cygwin" ] ; then
#
autobuild="$(cygpath -u $AUTOBUILD)"
#
else
if
[
"
$OSTYPE
"
=
"cygwin"
]
;
then
autobuild
=
"
$(
cygpath
-u
$AUTOBUILD
)
"
else
autobuild
=
"
$AUTOBUILD
"
#
fi
fi
SOURCE_DIR
=
"discord-rpc"
BUILD_DIR
=
"builds"
...
...
@@ -26,13 +28,12 @@ top="$(pwd)"
stage
=
"
$(
pwd
)
/stage"
# load autobuild provided shell functions and variables
#
source_environment_tempfile="$stage/source_environment.sh"
#
"$autobuild" source_environment > "$source_environment_tempfile"
#
. "$source_environment_tempfile"
source_environment_tempfile
=
"
$stage
/source_environment.sh"
"
$autobuild
"
source_environment
>
"
$source_environment_tempfile
"
.
"
$source_environment_tempfile
"
echo
"3.4.0"
>
VERSION.txt
pushd
"
$SOURCE_DIR
"
case
"
$AUTOBUILD_PLATFORM
"
in
windows
*
)
...
...
@@ -93,13 +94,13 @@ pushd "$SOURCE_DIR"
./build.py
--clean
mkdir
-p
$stage
/include
cp
-r
builds/install/linux-static/include
$stage
/include/
discord_rpc
cp
-r
builds/install/linux-static/include
$stage
/include/
${
PROJECT
}
mkdir
-p
$stage
/lib
cp
-r
builds/install/linux-static/lib/
*
$stage
/lib/release
;;
esac
mkdir
-p
"
$stage
/LICENSES"
cp
"LICENSE"
"
$stage
/LICENSES/
discord_rpc
.txt"
cp
"LICENSE"
"
$stage
/LICENSES/
${
PROJECT
}
.txt"
cp
../VERSION.txt
"
$stage
/"
popd
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment