From 91b86eb8d34f191a57bb3061e0ccb9c248e22e40 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 13 Dec 2020 15:25:50 -0500 Subject: finishing touches for Linux --- .gitignore | 3 +++ README.md | 8 ++++---- package.sh | 7 +++++++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 package.sh diff --git a/.gitignore b/.gitignore index 23d9f82..f4ae1fe 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ box2d .vs* setups *.b2s +box2d-src +*.tar.gz +*.zip diff --git a/README.md b/README.md index 9c206ba..a094486 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,8 @@ sudo apt install libsdl2-dev You need the latest version of Box2D. The versions in Debian stable/testing aren't new enough. You can install it with: ```bash -git clone https://github.com/erincatto/box2d/ -cd box2d +git clone https://github.com/erincatto/box2d/ box2d-src +cd box2d-src mkdir -p build cd build cmake -DBOX2D_BUILD_TESTBED=False .. @@ -63,8 +63,8 @@ and copy the folder `SDL2-something\include` there too, renaming it to `SDL2`. Next, install `Box2D` (you will need `git` in your PATH): ```bash vcvarsall x64 -git clone https://github.com/erincatto/box2d/ -cd box2d +git clone https://github.com/erincatto/box2d/ box2d-src +cd box2d-src xcopy /s /i include\box2d ..\box2d mkdir build cd build diff --git a/package.sh b/package.sh new file mode 100755 index 0000000..190c380 --- /dev/null +++ b/package.sh @@ -0,0 +1,7 @@ +#!/bin/sh +make clean +make release -j8 || exit 1 +tar --transform 's,^,boxcatapult2d/,' -czvf boxcatapult2d-source.tar.gz $(git ls-files) +tar --transform 's,^,boxcatapult2d/,' -czvf boxcatapult2d-linux.tar.gz \ + $(git ls-files assets) boxcatapult2d LICENSE README.md + -- cgit v1.2.3