Spaces:
Running
Running
Aniket Mishra
feat: complete cross-platform Native Desktop App (Mac & Windows) with zero logic change for Cloud
c7aab62 Download Launch_YouTube_Uploader.command from pwVP/Drive2Youtube: direct link, hf CLI and curl.
- Browser
- Download file 941 Bytes
-
https://huggingface.co/spaces/pwVP/Drive2Youtube/resolve/main/Launch_YouTube_Uploader.command
- Command line
-
hf download hf://spaces/pwVP/Drive2Youtube/Launch_YouTube_Uploader.command
-
curl -L -o Launch_YouTube_Uploader.command https://huggingface.co/spaces/pwVP/Drive2Youtube/resolve/main/Launch_YouTube_Uploader.command
941 Bytes
| cd "$(dirname "$0")" | |
| echo "========================================================" | |
| echo " π DRIVE TO YOUTUBE UPLOADER - DESKTOP APP (MAC)" | |
| echo "========================================================" | |
| # Check if node is installed | |
| if ! command -v node &> /dev/null; then | |
| echo "β Node.js is not found! Please install Node.js." | |
| exit 1 | |
| fi | |
| # Check if electron is available to open as native Desktop Window | |
| if [ -d "node_modules/electron" ]; then | |
| echo "β‘ Opening Desktop App Window..." | |
| npx electron electron-main.js | |
| else | |
| # Fallback to background server + browser | |
| if ! lsof -i :3000 > /dev/null 2>&1; then | |
| echo "β‘ Starting background server on port 3000..." | |
| nohup node server.js > /dev/null 2>&1 & | |
| sleep 1.5 | |
| fi | |
| echo "π Opening App in your default browser..." | |
| open "http://localhost:3000" | |
| fi | |
| echo "========================================================" | |