From 3f80ccbfc0dd2f3b4295e506e7ce5931b720e2ee Mon Sep 17 00:00:00 2001 From: notori <188390306+n0tori@users.noreply.github.com> Date: Thu, 13 Mar 2025 12:28:08 +0000 Subject: project files --- install.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 install.sh (limited to 'install.sh') diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..ea48d4a --- /dev/null +++ b/install.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Script to copy install binary to D:/mrpackages and eject the drive + +# Copy the install binary +cp target/Update_KGameOfLife_GameOfLife_install.bin D:/mrpackages/ + +# Eject the drive +if [[ "$OSTYPE" == "linux-gnu"* ]]; then + # Linux + eject D: +elif [[ "$OSTYPE" == "darwin"* ]]; then + # macOS + diskutil eject D: +elif [[ "$OSTYPE" == "msys"* ]] || [[ "$OSTYPE" == "cygwin"* ]] || [[ "$OSTYPE" == "win32"* ]]; then + # Windows + powershell -command "& {(New-Object -comObject Shell.Application).Namespace(17).ParseName('D:').InvokeVerb('Eject')}" +else + echo "Unsupported OS for drive ejection. Please eject drive D: manually." +fi + +echo "Install binary copied to D:/mrpackages and drive ejected (if supported)." \ No newline at end of file -- cgit v1.2.3