Merge pull request #692 from konimex/mingw

OS: Added support for MinGW
This commit is contained in:
Herdiansyah 2017-04-05 23:22:33 +07:00 committed by GitHub
commit 65fb501c1f
2 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@
- Added support for SliTaz. **[@nilesr](https://github.com/nilesr)** - Added support for SliTaz. **[@nilesr](https://github.com/nilesr)**
- Added support for Nitrux. **[@mstraube](https://github.com/mstraube)** - Added support for Nitrux. **[@mstraube](https://github.com/mstraube)**
- Added support for DesaOS. - Added support for DesaOS.
- Added support for MinGW.
## Screenshot ## Screenshot

View File

@ -38,7 +38,7 @@ get_os() {
"Linux" | "GNU"*) os="Linux" ;; "Linux" | "GNU"*) os="Linux" ;;
"Darwin") os="$(sw_vers -productName)" ;; "Darwin") os="$(sw_vers -productName)" ;;
*"BSD" | "DragonFly" | "Bitrig") os="BSD" ;; *"BSD" | "DragonFly" | "Bitrig") os="BSD" ;;
"CYGWIN"* | "MSYS"*) os="Windows" ;; "CYGWIN"* | "MSYS"* | "MINGW"*) os="Windows" ;;
"SunOS") os="Solaris" ;; "SunOS") os="Solaris" ;;
"Haiku") os="Haiku" ;; "Haiku") os="Haiku" ;;
"MINIX") os="MINIX" ;; "MINIX") os="MINIX" ;;
@ -1967,7 +1967,7 @@ get_install_date() {
"Windows") "Windows")
case "$kernel_name" in case "$kernel_name" in
"CYGWIN"*) install_file="/cygdrive/c/Windows/explorer.exe" ;; "CYGWIN"*) install_file="/cygdrive/c/Windows/explorer.exe" ;;
"MSYS"*) install_file="/c/Windows/explorer.exe" ;; "MSYS"* | "MINGW"*) install_file="/c/Windows/explorer.exe" ;;
esac esac
;; ;;
"Haiku") install_file="/boot" ;; "Haiku") install_file="/boot" ;;
@ -2222,7 +2222,7 @@ get_wallpaper() {
"Windows XP") "Windows XP")
case "$kernel_name" in case "$kernel_name" in
"CYGWIN"*) image="/cygdrive/c/Documents and Settings/${USER}" ;; "CYGWIN"*) image="/cygdrive/c/Documents and Settings/${USER}" ;;
"MSYS2"*) image="/c/Documents and Settings/${USER}" ;; "MSYS2"* | "MINGW*") image="/c/Documents and Settings/${USER}" ;;
esac esac
image+="/Local Settings/Application Data/Microsoft" image+="/Local Settings/Application Data/Microsoft"
image+="/Wallpaper1.bmp" image+="/Wallpaper1.bmp"