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

Commit

Permalink
Merge pull request #7 from bgempire/new-launcher
Browse files Browse the repository at this point in the history
- (Tried to) Fix virus warnings by rewriting the basic launcher in Rust Browser fails to download #1
- Implement basic Rust project structure Implement Rust launcher project structure #2
- Improvements on backend logic
  • Loading branch information
joelgomes1994 authored Feb 14, 2022
2 parents 6377e27 + 94b0f47 commit 49f5734
Show file tree
Hide file tree
Showing 17 changed files with 461 additions and 304 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ __pycache__
/data.dat
/launcher/launcher.py
/source/tools/Windows/ResourceHacker.ini
/source/launcher/target
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ifdef OS
TARGET = i686-pc-windows-gnu
DELETE = del /Q
COPY = copy /-Y
EXT = .exe
END = &&
SOURCE_EXE = ".\target\$(TARGET)\release\bgarmor$(EXT)"
TARGET_EXE = "..\..\BGArmor$(EXT)"
UPX = REM
else
TARGET = i686-unknown-linux-gnu
DELETE = rm -f
COPY = cp -f
EXT =
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) $(TARGET_EXE)
2 changes: 1 addition & 1 deletion launcher/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"GameName": "Example Game",
"Version": "0.0.5",
"Version": "0.0.6",
"MainFile": "Example Game.blend",
"DataFile": "./data.dat",
"DataSource": "./data",
Expand Down
16 changes: 0 additions & 16 deletions lin-build-launcher.sh

This file was deleted.

189 changes: 0 additions & 189 deletions source/Launcher.c

This file was deleted.

Loading

0 comments on commit 49f5734

Please sign in to comment.