├── README.md ├── download.sh └── favicon.ico /README.md: -------------------------------------------------------------------------------- 1 | ## ভিডিও ইন্সট্রাকশন 2 | [How to Install Neptune Desktop App](https://drive.google.com/file/d/1K7p81Kw02moCN5jZ3nF0ZxWI_lfLZB6H/view?usp=share_link) 3 | 4 | 5 | ## নেপচুন ডেস্কটপ এপ্লিকেশন (শুধুমাত্র উইন্ডোজ এর জন্য) 6 | 7 | > যদি পিসিতে পুরাতন কোনো ভার্সন ইন্সটল করা থাকে, তাহলে অবশ্যই তা আনইন্সটল করে নিবে। 8 | 9 | ### কিভাবে ইন্সটল করবে? 10 | - প্রথমেই তুমি যেখানে এপ্লিকেশনটি ডাউনলোড করতে চাও, সেই ফোল্ডারে গিট ব্যাশ ওপেন করো। 11 | - তারপর, গিট ব্যাশে নিচের কমান্ডটি কপি/পেস্ট করে রান করো। 12 | - কমান্ডটি এপ্লিকেশন এর লেটেস্ট ভার্সন ডাউনলোড করে ইন্সটল করে ফেলবে। 13 | 14 | ```bash 15 | bash <(curl -s https://raw.githubusercontent.com/Programming-Hero1/neptune-desktop-app/main/download.sh) 16 | ``` 17 | 18 | ## Neptune Desktop Application (Only for windows) 19 | 20 | > Uninstall any previous versions installed before running this command. 21 | 22 | ### Installation 23 | - Open git bash in the directory you want to download the application 24 | - Copy the following command and run it 25 | - The command will download the latest version of application and install it. 26 | ```bash 27 | bash <(curl -s https://raw.githubusercontent.com/Programming-Hero1/neptune-desktop-app/main/download.sh) 28 | ``` 29 | -------------------------------------------------------------------------------- /download.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Retrieve the latest release information from GitHub's API 4 | release=$(curl --silent "https://api.github.com/repos/Programming-Hero1/neptune-desktop-app/releases/latest") 5 | 6 | # Extract the URL of the asset we want to download 7 | URL=$(echo $release | grep -o '"browser_download_url": "[^"]*"' | sed 's/"browser_download_url": "\(.*\)"/\1/' | grep '\.exe$') 8 | 9 | # Check if there are multiple .exe files in the release 10 | if [ $(echo $release | grep -o '"browser_download_url": "[^"]*"' | sed 's/"browser_download_url": "\(.*\)"/\1/' | grep '\.exe$' | wc -l) -gt 1 ]; then 11 | echo "Error: Found multiple .exe files in the release. Aborting." 12 | exit 1 13 | fi 14 | 15 | # Check if there are no .exe files in the release 16 | if [ $(echo $release | grep -o '"browser_download_url": "[^"]*"' | sed 's/"browser_download_url": "\(.*\)"/\1/' | grep '\.exe$' | wc -l) -eq 0 ]; then 17 | echo "Error: No .exe files found in the release. Aborting." 18 | exit 1 19 | fi 20 | 21 | # Download the asset with progress bar 22 | FILENAME=$(basename $URL) 23 | echo "Downloading $FILENAME..." 24 | curl --progress-bar -L -o $FILENAME $URL 25 | 26 | # Check if the download was successful 27 | if [ $? -eq 0 ]; then 28 | echo "File downloaded successfully." 29 | else 30 | echo "Failed to download file." 31 | fi 32 | 33 | # Install the downloaded file 34 | echo "Installing $FILENAME..." 35 | ./$FILENAME 36 | 37 | # Check if the installation was successful 38 | if [ $? -eq 0 ]; then 39 | echo "Installation successful." 40 | else 41 | echo "Installation failed." 42 | fi 43 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Programming-Hero1/neptune-desktop-app/5f88b05cb8fc05259e93540f4dd182d1fb331ef4/favicon.ico --------------------------------------------------------------------------------