aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build17
-rwxr-xr-xbin/start15
2 files changed, 3 insertions, 29 deletions
diff --git a/bin/build b/bin/build
index 19cb7043..4d1bf53b 100755
--- a/bin/build
+++ b/bin/build
@@ -24,19 +24,8 @@ cp -r build/* ../slskd/wwwroot/
cd ../slskd
echo $'\n> pwd\n'
pwd
-echo $'\n> dotnet publish --configuration Release\n'
-dotnet publish --configuration Release
+echo $'\n> dotnet build --configuration Release\n'
-# build docker
-if [ "$1" == "--with-docker" ]; then
- tag=$(git log -1 --pretty=%H)
- cd ../..
- echo $'\n> pwd\n'
- pwd
- echo $'\n> docker build -t slskd/slskd:'$tag$' .\n'
- docker build -t slskd/slskd:$tag .
- echo $'\n> docker tag slskd/slskd:'$tag$' slskd/sldkd:latest\n'
- docker tag slskd/slskd:$tag slskd/slskd:latest
-fi
+dotnet build --configuration Release
-echo build succeded. \ No newline at end of file
+echo $'\nbuild succeded.' \ No newline at end of file
diff --git a/bin/start b/bin/start
deleted file mode 100755
index 045c02b6..00000000
--- a/bin/start
+++ /dev/null
@@ -1,15 +0,0 @@
-docker run -d \
- -p 5000:5000 \
- -p 50000:50000 \
- -v $SLSK_OUTPUT_DIR:/var/slsk/download \
- -v $SLSK_SHARED_DIR:/var/slsk/shared \
- -e "SLSK_USERNAME=$SLSK_USERNAME" \
- -e "SLSK_PASSWORD=$SLSK_PASSWORD" \
- -e "SLSK_LISTEN_PORT=50000" \
- -e "SLSK_ENABLE_DNET=true" \
- -e "SLSK_DNET_CHILD_LIMIT=10" \
- -e "SLSK_DIAGNOSTIC=Info" \
- -e "SLSK_CONNECT_TIMEOUT=5000" \
- -e "SLSK_INACTIVITY_TIMEOUT=15000" \
- --name slskd \
- slskd/slskd:latest \ No newline at end of file