mirror of
https://github.com/minoplhy/scriptbox.git
synced 2024-12-05 01:46:57 +00:00
build_gitea: fix: remove Temporary dir
This commit is contained in:
parent
847cd3eebb
commit
6d110b1f0e
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
MAKE_DIR=$(mktemp -d)
|
|
||||||
DESTINATION=~/gitea-binaries
|
DESTINATION=~/gitea-binaries
|
||||||
|
|
||||||
rm -rf $DESTINATION
|
rm -rf $DESTINATION
|
||||||
@ -92,14 +91,14 @@ case $os in
|
|||||||
* )
|
* )
|
||||||
wget https://nodejs.org/dist/$NODEJS_VERSION/node-$NODEJS_VERSION-$DISTRO.tar.xz
|
wget https://nodejs.org/dist/$NODEJS_VERSION/node-$NODEJS_VERSION-$DISTRO.tar.xz
|
||||||
tar -xJvf node-$NODEJS_VERSION-$DISTRO.tar.xz -C $MAKE_DIR
|
tar -xJvf node-$NODEJS_VERSION-$DISTRO.tar.xz -C $MAKE_DIR
|
||||||
export PATH=$PATH:$MAKE_DIR/node-$NODEJS_VERSION-$DISTRO/bin
|
export PATH=$PATH:$DESTINATION/node-$NODEJS_VERSION-$DISTRO/bin
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Golang
|
# Golang
|
||||||
wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
|
wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
|
||||||
tar -C $MAKE_DIR -xzf go$GO_VERSION.linux-amd64.tar.gz
|
tar -C $MAKE_DIR -xzf go$GO_VERSION.linux-amd64.tar.gz
|
||||||
export PATH=$PATH:$MAKE_DIR/go/bin
|
export PATH=$PATH:$DESTINATION/go/bin
|
||||||
|
|
||||||
# Gitea
|
# Gitea
|
||||||
|
|
||||||
@ -144,9 +143,5 @@ then
|
|||||||
mkdir -p $DESTINATION/gitea-static
|
mkdir -p $DESTINATION/gitea-static
|
||||||
|
|
||||||
make frontend
|
make frontend
|
||||||
mv $MAKE_DIR/gitea/public/* $DESTINATION/gitea-static
|
mv $DESTINATION/gitea-repo/public/* $DESTINATION/gitea-static
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
|
|
||||||
rm -rf $MAKE_DIR
|
|
Loading…
Reference in New Issue
Block a user