Verified Commit ae944168 authored by Xenny Heartsong's avatar Xenny Heartsong
Browse files

fix packaging for linux64

parent 56fc6f2a
Pipeline #1249 passed with stages
in 55 seconds
......@@ -81,6 +81,11 @@
<string>default</string>
</map>
</map>
<key>manifest</key>
<array>
<string>lib/discord_rpc/*</string>
<string>include/discord_rpc/*</string>
</array>
<key>name</key>
<string>linux</string>
</map>
......
......@@ -119,7 +119,7 @@ pushd "$SOURCE_DIR"
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_C_FLAGS="$DEBUG_CFLAGS" \
-DCMAKE_CXX_FLAGS="$DEBUG_CXXFLAGS" \
-DCMAKE_INSTALL_PREFIX="$stage/${PROJECT}/debug"
-DCMAKE_INSTALL_PREFIX="$stage/lib/${PROJECT}/debug"
cmake --build . --config Debug --parallel $AUTOBUILD_CPU_COUNT
......@@ -129,6 +129,9 @@ pushd "$SOURCE_DIR"
#fi
cmake --install . --config Debug
# FIXME: Delete files that shouldn't be there
rm -r "$stage/lib/${PROJECT}/debug/include"
popd
# Release
......@@ -140,7 +143,7 @@ pushd "$SOURCE_DIR"
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_C_FLAGS="$RELEASE_CFLAGS" \
-DCMAKE_CXX_FLAGS="$RELEASE_CXXFLAGS" \
-DCMAKE_INSTALL_PREFIX="$stage/${PROJECT}/release"
-DCMAKE_INSTALL_PREFIX="$stage/lib/${PROJECT}/release"
cmake --build . --config Release --parallel $AUTOBUILD_CPU_COUNT
......@@ -150,6 +153,10 @@ pushd "$SOURCE_DIR"
# #fi
cmake --install . --config Release
# FIXME: Temporary workaround for files in the wrong folder
mkdir -p "$stage/include/"
mv "$stage/lib/${PROJECT}/release/include" "$stage/include/${PROJECT}"
popd
;;
esac
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment