Skip to content

Commit

Permalink
Add zip output, commit initial zipfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicFrog committed Sep 1, 2023
1 parent b4306fe commit 69b31fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
DLL=GameData/FundingFloor/Plugins/FundingFloor.dll
NAME=FundingFloor
VERSION=0.1
DLL=GameData/$(NAME)/Plugins/$(NAME).dll
ZIP=$(NAME)-$(VERSION).zip
KSP=$(HOME)/Games/Steam/Kerbal Space Program
LIBS=Assembly-CSharp.dll,UnityEngine.dll,UnityEngine.CoreModule.dll
FLAGS=-codepage:utf8 -target:library -lib:"$(KSP)/KSP_Data/Managed" -r:$(LIBS)
Expand All @@ -11,8 +14,14 @@ deploy: $(DLL)
deploy-prod: $(DLL)
rsync -aPhv --delete GameData/FundingFloor/ durandal:steam/'Kerbal Space Program'/GameData/FundingFloor/

zip: release/$(ZIP)
release/$(ZIP): $(DLL)
mkdir -p release
rm -f $@
cd GameData && zip -r -9 ../$@ $(NAME)

clean:
rm -f $(DLL)
rm -f $(DLL) $(ZIP)

$(DLL): *.cs
mcs $(FLAGS) -out:$@ $^
Expand Down
Binary file added release/FundingFloor-0.1.zip
Binary file not shown.

0 comments on commit 69b31fc

Please sign in to comment.