diff --git a/sh/.gitattributes b/sh/.gitattributes new file mode 100644 index 0000000..f7a4cb0 --- /dev/null +++ b/sh/.gitattributes @@ -0,0 +1 @@ +*.sh text eof=lf \ No newline at end of file diff --git a/sh/publish.sh b/sh/publish.sh new file mode 100755 index 0000000..40d69d0 --- /dev/null +++ b/sh/publish.sh @@ -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 diff --git a/sh/quik_build_native.sh b/sh/quik_build_native.sh old mode 100644 new mode 100755 index 3d70ba5..ca6cf16 --- a/sh/quik_build_native.sh +++ b/sh/quik_build_native.sh @@ -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