Reimplement the installer with C#

The new installer includes better error handling and automatic
architecture detection to support both x86-64 and IA-32.
This commit is contained in:
Lauri Kenttä
2016-06-04 18:46:27 +03:00
parent 733acccc42
commit a627895bfb
4 changed files with 375 additions and 131 deletions

View File

@@ -13,7 +13,10 @@ FILES_H = $(wildcard src/*.h)
.PHONY: all default
default: bootx64.efi
all: bootx64.efi bootia32.efi
all: bootx64.efi bootia32.efi setup.exe
setup.exe: src/Setup.cs
mcs -out:$@ $^
bootx64.efi: CC_PREFIX = x86_64-w64-mingw32
bootx64.efi: GNUEFI_ARCH = x86_64
@@ -25,5 +28,5 @@ bootia32.efi: GNUEFI_ARCH = ia32
bootia32.efi: $(FILES_C)
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) -s
HackBGRT.tar.xz: bootx64.efi bootia32.efi config.txt splash.bmp install.bat uninstall.bat README.md README.efilib LICENSE
HackBGRT.tar.xz: bootx64.efi bootia32.efi config.txt splash.bmp setup.exe README.md README.efilib LICENSE
tar cJf $@ --transform=s,^,HackBGRT/, $^