simplify building locally

This commit is contained in:
Leons Aleksandrovs
2025-11-19 09:53:54 +02:00
parent cb9c3113fe
commit 60ea75372b
4 changed files with 10 additions and 122 deletions

View File

@@ -121,19 +121,19 @@ echo "{
echo -e "${GREEN}.vscode/sftp.json created successfully${NC}"
# Go through scripts, add variables and add them to project folder
scripts=("upload-core-build.sh" "watch-core-build.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh")
scripts=("build-watch.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh")
for script in "${scripts[@]}"; do
# Add variables to script
echo "
#!/bin/bash
set -e
#!/bin/bash
set -e
# Configuration
SERVER_USER=\"${USERNAME}\"
SERVER_HOST=\"${HOST}\"
SERVER_PASSWORD=\"${SSH_PASSWORD}\"
SERVER_PATH=\"${SERVER_PROJECT_PATH}/\"
# Configuration
SERVER_USER=\"${USERNAME}\"
SERVER_HOST=\"${HOST}\"
SERVER_PASSWORD=\"${SSH_PASSWORD}\"
SERVER_PATH=\"${SERVER_PROJECT_PATH}/\"
" > "${script}"
# Append the rest of the upload core build script