23 lines
525 B
Bash
23 lines
525 B
Bash
#!/bin/bash
|
|
|
|
# Create a temporary directory to hold the files
|
|
mkdir -p /tmp/nkodeapi
|
|
|
|
cp -r ./core/* /tmp/nkodeapi/
|
|
cp -r ./hashset/* /tmp/nkodeapi/
|
|
cp -r ./py-builtin/* /tmp/nkodeapi/
|
|
cp -r ./util/* /tmp/nkodeapi/
|
|
|
|
cp go.mod /tmp/nkodeapi/
|
|
cp main.go /tmp/nkodeapi/
|
|
|
|
|
|
# Disable extended attributes and create the tar file
|
|
export COPYFILE_DISABLE=1
|
|
tar -cvf go-nkode.tar -C /tmp nkodeapi
|
|
|
|
# Clean up the temporary directory after the archive is created
|
|
rm -rf /tmp/webapp
|
|
|
|
scp go-nkode.tar dkelly@api.nkode.tech:/home/dkelly
|