Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
fix: disable upx on windows build
Browse files Browse the repository at this point in the history
- this fixes corruption when setting icons
  • Loading branch information
joelgomes1994 committed Feb 13, 2022
1 parent 501e106 commit 79b6882
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ifdef OS
END = &&
SOURCE_EXE = ".\target\$(TARGET)\release\bgarmor$(EXT)"
TARGET_EXE = "..\..\BGArmor$(EXT)"
UPX = REM
else
TARGET = i686-unknown-linux-gnu
DELETE = rm -f
Expand All @@ -14,11 +15,12 @@ else
END = ;
SOURCE_EXE = "./target/$(TARGET)/release/bgarmor$(EXT)"
TARGET_EXE = "../../BGArmor$(EXT)"
UPX = upx -5
endif

build:
cd "./source/launcher/" $(END) \
$(DELETE) $(TARGET_EXE) $(END) \
cargo build --target=$(TARGET) --release $(END) \
$(COPY) $(SOURCE_EXE) $(TARGET_EXE) $(END) \
upx -5 $(TARGET_EXE)
$(UPX) $(TARGET_EXE)

0 comments on commit 79b6882

Please sign in to comment.