Compare commits
2 Commits
d9c98b5cdc
...
146f1e0855
| Author | SHA1 | Date | |
|---|---|---|---|
| 146f1e0855 | |||
| e72ca60381 |
18
sh/publish.sh
Normal file
18
sh/publish.sh
Normal 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
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
# $1 Source path of the project.
|
# $1 Source path of the project.
|
||||||
# $2 Target architecture list.
|
# $2 Target architecture list.
|
||||||
# DST is the destination directory.
|
# DST is the destination directory.
|
||||||
|
# NOINSTALL = 1 to skip installing.
|
||||||
|
|
||||||
SRC=$1
|
SRC=$1
|
||||||
ARCHS=$2
|
ARCHS=$2
|
||||||
@@ -50,5 +51,9 @@ for ARCH in $ARCHS; do
|
|||||||
|
|
||||||
# Build and install.
|
# Build and install.
|
||||||
ninja -C $BUILD all
|
ninja -C $BUILD all
|
||||||
|
|
||||||
|
if [ ! $NOINSTALL ]
|
||||||
|
then
|
||||||
ninja -C $BUILD install
|
ninja -C $BUILD install
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user