This commit is contained in:
H. Utku Maden 2024-04-06 13:58:34 +03:00
commit 7ba37df367
3 changed files with 26 additions and 2 deletions

1
sh/.gitattributes vendored Normal file

@ -0,0 +1 @@
*.sh text eof=lf

18
sh/publish.sh Executable file

@ -0,0 +1,18 @@
#!/bin/bash
if [-z "$1"]
then
$1 = $(dirname "$0")
fi
if [ -z "$QUIK_API_KEY" ]
then
echo "Please define QUIK_API_KEY"
exit 1
fi
cd $1
dotnet nuget add source \
-n QUIK -u themixedupstuff -p "$QUIK_API_KEY" \
--store-password-in-clear-text \
https://git.mixedup.dev/api/packages/QUIK/nuget/index.json
dotnet nuget push -s QUIK bin/*/*.nupkg

9
sh/quik_build_native.sh Normal file → Executable file

@ -3,6 +3,7 @@
# $1 Source path of the project.
# $2 Target architecture list.
# DST is the destination directory.
# NOINSTALL = 1 to skip installing.
SRC=$1
ARCHS=$2
@ -34,7 +35,7 @@ for ARCH in $ARCHS; do
# Build directory.
BUILD=$DST/out/$ARCH
# Cmake toolchain file.
TOOLCHAIN=$CMAKE_DIR/cmake/$ARCH.cmake
TOOLCHAIN=$CMAKE_DIR/$ARCH.cmake
# Create directories.
mkdir -p $PREFIX $BUILD
@ -50,5 +51,9 @@ for ARCH in $ARCHS; do
# Build and install.
ninja -C $BUILD all
ninja -C $BUILD install
if [ ! $NOINSTALL ]
then
ninja -C $BUILD install
fi
done