-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·34 lines (26 loc) · 974 Bytes
/
update.sh
File metadata and controls
executable file
·34 lines (26 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Exit on any error
set -e
echo "Updating Ark IDE source code..."
# Navigate to electron directory
cd "$(dirname "$0")"
# Remove old source directory
echo "Removing old source directory..."
rm -rf source
# Clone the repository at gh-pages branch
echo "Cloning latest version from GitHub..."
git clone --branch gh-pages --depth 1 https://github.com/arc360alt/arkide-new.git temp-source
# Remove .git directory from cloned repo (optional, keeps things clean)
rm -rf temp-source/.git
# Rename to source
echo "Installing new source..."
mv temp-source source
# Create README.MD in the source folder
echo "Creating README.MD..."
cat > source/README.MD << 'EOF'

### ArkIDE Desktop Frontend: The frontend code for ArkIDE Desktop that is replaced every build.
# DO NOT EDIT. THIS FOLDER IS AUTOMATICLY REPLACED EVERY BUILD VIA ./update.sh
EOF
echo "Update complete!"
echo "Run 'npm start' to launch the updated app."