From 4ea69698424f7bfe93d0e9142f6f50c0583ef168 Mon Sep 17 00:00:00 2001 From: Charadon Date: Tue, 20 Sep 2022 11:51:43 -0400 Subject: Updated README.txt --- README.txt | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 1b39cd8..fdc75a2 100644 --- a/README.txt +++ b/README.txt @@ -31,7 +31,7 @@ My goal with this project is: is the only way I can learn. =============================================================================== Build with Tup: - 1. Modify tup.config to your needs. + 1. Copy/Modify tup.config to your needs. 2. Run `tup` 3. Run ./install.sh 4. Done @@ -41,5 +41,21 @@ Build without Tup: 1. Run ./build-$RELEASETYPE.sh (release if packaging, debug if debugging) 2. Run ./install.sh 3. Done. +Distributing: + This is complicated, and depends on your platform. On most systems, the best + way to redistribute binaries is to use a combination of ldd and awk. + Example: + mkdir -p libs/ + for i in $(ldd ./Pong | awk '/usr\/lib/{print $3}'); + do + cp $i libs/ + done + The syntax you'll have to use depends on your system, OpenBSD for example + stores packages in /usr/local. Not to mention this method is unreliable on + many linux distributions due to /lib and /usr/lib being the same + directory. On Windows, the libraries should be in the same directory as + the executable. + + From there, just simply tarball or zip up the game with the libraries. =============================================================================== If you like my work and want to support me, consider donating to me on https://liberapay.com/Charadon/ -- cgit 1.4.1-2-gfad0