From b96f1e9dfb0fb23289112c87dc169106a3bf5389 Mon Sep 17 00:00:00 2001 From: Jack Punter Date: Sat, 4 Feb 2023 15:21:00 +0000 Subject: [PATCH] Remove scripts to update Itch.io page - update readme with build instructions - remove 32-bit and demo builds from package scripts --- README.md | 29 ++++++++++++++++++++++++++- code/bin/itchio_push_all.sh | 33 ------------------------------- code/bin/itchio_push_linux-x86.sh | 22 --------------------- code/bin/itchio_push_linux.sh | 22 --------------------- code/bin/itchio_push_mac.sh | 22 --------------------- code/bin/itchio_push_win.bat | 26 ------------------------ code/bin/package-linux.sh | 1 - code/bin/package-mac.sh | 1 - code/bin/package-x86-linux.sh | 5 ----- code/bin/package.bat | 3 --- 10 files changed, 28 insertions(+), 136 deletions(-) delete mode 100755 code/bin/itchio_push_all.sh delete mode 100755 code/bin/itchio_push_linux-x86.sh delete mode 100755 code/bin/itchio_push_linux.sh delete mode 100755 code/bin/itchio_push_mac.sh delete mode 100644 code/bin/itchio_push_win.bat delete mode 100755 code/bin/package-x86-linux.sh diff --git a/README.md b/README.md index ce453727..28bd9f0c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,30 @@ # 4Coder Community -Welcome to the 4coder community repostiory. \ No newline at end of file +Welcome to the 4coder community repository. + +# Building + +## Windows +1. Setup the MSVC toolchain in your environment, this can be done with the `code/custom/bin/setup_cl_x64.bat` script +2. call the `package.bat` script from the code directory + 1. `$ cd 4cc/code` + 2. `./bin/package.bat` +3. You can also use the `build.bat` script if you want just build the binaries, this does not copy the default config, fonts and bindings + 1. `$ cd 4cc/code` + 2. `$ ./bin/build.bat` + +## Linux +> tested on Ubuntu 22.04: + +1. Get tequired libraries (apt names): + - `$ sudo apt install build-essential libx11-dev libxfixes-dev libglx-dev mesa-common-dev libasound2-dev libfreetype-dev libfontconfig-dev` +2. Use the `package-linux.sh` script to build and package an application + 1. `$ cd 4cc/code` + 2. `$ ./bin/package-linux.sh` + +3. You can also use the `build-linux.sh` script if you want just build the binaries, this does not copy the default config, fonts and bindings + 1. `$ cd 4cc/code` + 2. `$ ./bin/build-linux.sh` + +## Mac (Untested) +1. The steps should be the same as linux but replace the `*-linux.sh` with their `*-mac.sh` equivalents. \ No newline at end of file diff --git a/code/bin/itchio_push_all.sh b/code/bin/itchio_push_all.sh deleted file mode 100755 index bb606ddf..00000000 --- a/code/bin/itchio_push_all.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -if [ "$#" -lt "3" ] -then -echo need 3 parameters -exit -else - -fake=$1 -maj=$2 -min=$3 - -vr=$fake.$maj.$min -fv=$fake-$maj-$min - -flags="--fix-permissions --userversion=$vr" -dir=../current_dist_all_os - -butler push $flags $dir/4coder-alpha-$fv-win-x64.zip 4coder/4coder:win-x64-alpha -butler push $flags $dir/4coder-alpha-$fv-linux-x64.zip 4coder/4coder:linux-x64-alpha -butler push $flags $dir/4coder-alpha-$fv-mac-x64.zip 4coder/4coder:osx-x64-alpha -butler push $flags $dir/4coder-alpha-$fv-win-x86.zip 4coder/4coder:win-x86-alpha -butler push $flags $dir/4coder-alpha-$fv-linux-x86.zip 4coder/4coder:linux-x86-alpha -butler push $flags $dir/4coder-alpha-$fv-mac-x86.zip 4coder/4coder:osx-x86-alpha - -butler push $flags $dir/4coder-alpha-$fv-super-win-x64.zip 4coder/4coder:win-x64-super -butler push $flags $dir/4coder-alpha-$fv-super-linux-x64.zip 4coder/4coder:linux-x64-super -butler push $flags $dir/4coder-alpha-$fv-super-mac-x64.zip 4coder/4coder:osx-x64-super -butler push $flags $dir/4coder-alpha-$fv-super-win-x86.zip 4coder/4coder:win-x86-super -butler push $flags $dir/4coder-alpha-$fv-super-linux-x86.zip 4coder/4coder:linux-x86-super -butler push $flags $dir/4coder-alpha-$fv-super-mac-x86.zip 4coder/4coder:osx-x86-super - -fi diff --git a/code/bin/itchio_push_linux-x86.sh b/code/bin/itchio_push_linux-x86.sh deleted file mode 100755 index 5195743e..00000000 --- a/code/bin/itchio_push_linux-x86.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -if [ "$#" -lt "3" ] -then -echo need 3 parameters -exit -else - -fake=$1 -maj=$2 -min=$3 - -vr=$fake.$maj.$min -fv=$fake-$maj-$min - -flags="--fix-permissions --userversion=$vr" -dir=../distributions - -butler push $flags $dir/demo_x86/4coder-$fv-demo-linux-x86.zip 4coder/4coder:linux-x86-demo -butler push $flags $dir/super_x86/4coder-$fv-super-linux-x86.zip 4coder/4coder:linux-x86 - -fi diff --git a/code/bin/itchio_push_linux.sh b/code/bin/itchio_push_linux.sh deleted file mode 100755 index 5d18bc45..00000000 --- a/code/bin/itchio_push_linux.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -if [ "$#" -lt "3" ] -then -echo need 3 parameters -exit -else - -fake=$1 -maj=$2 -min=$3 - -vr=$fake.$maj.$min -fv=$fake-$maj-$min - -flags="--fix-permissions --userversion=$vr" -dir=../distributions - -butler push $flags $dir/demo_x64/4coder-$fv-demo-linux-x64.zip 4coder/4coder:linux-x64-demo -butler push $flags $dir/super_x64/4coder-$fv-super-linux-x64.zip 4coder/4coder:linux-x64 - -fi diff --git a/code/bin/itchio_push_mac.sh b/code/bin/itchio_push_mac.sh deleted file mode 100755 index ba8a0f03..00000000 --- a/code/bin/itchio_push_mac.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -if [ "$#" -lt "3" ] -then -echo need 3 parameters -exit -else - -fake=$1 -maj=$2 -min=$3 - -vr=$fake.$maj.$min -fv=$fake-$maj-$min - -flags="--fix-permissions --userversion=$vr" -dir=../distributions - -butler push $flags $dir/demo_x64/4coder-$fv-demo-mac-x64.zip 4coder/4coder:mac-x64-demo -butler push $flags $dir/super_x64/4coder-$fv-super-mac-x64.zip 4coder/4coder:mac-x64 - -fi diff --git a/code/bin/itchio_push_win.bat b/code/bin/itchio_push_win.bat deleted file mode 100644 index eec0c25d..00000000 --- a/code/bin/itchio_push_win.bat +++ /dev/null @@ -1,26 +0,0 @@ -@echo off - -IF "%3" == "" (echo need 3 parameters & GOTO END) - -SET fake=%1 -SET maj=%2 -SET min=%3 - -SET vr=%fake%.%maj%.%min% -SET fv=%fake%-%maj%-%min% - -SET flags=--fix-permissions --userversion=%vr% - -pushd .. - -SET dir=%CD%\distributions - -butler push %flags% %dir%\demo_x64\4coder-%fv%-demo-win-x64.zip 4coder/4coder:win-x64-demo -butler push %flags% %dir%\super_x64\4coder-%fv%-super-win-x64.zip 4coder/4coder:win-x64 - -REM butler push %flags% %dir%\demo_x86\4coder-%fv%-demo-win-x86.zip 4coder/4coder:win-x86-demo -REM butler push %flags% %dir%\super_x86\4coder-%fv%-super-win-x86.zip 4coder/4coder:win-x86 - -popd - -:END diff --git a/code/bin/package-linux.sh b/code/bin/package-linux.sh index 7c627903..bbf2def9 100755 --- a/code/bin/package-linux.sh +++ b/code/bin/package-linux.sh @@ -1,5 +1,4 @@ #!/bin/bash chmod +x bin/build-linux.sh -bin/build-linux.sh "-DPACKAGE_DEMO_X64" bin/build-linux.sh "-DPACKAGE_SUPER_X64" diff --git a/code/bin/package-mac.sh b/code/bin/package-mac.sh index eacab020..698a6bf3 100755 --- a/code/bin/package-mac.sh +++ b/code/bin/package-mac.sh @@ -1,5 +1,4 @@ #!/bin/bash chmod +x bin/build-mac.sh -bin/build-mac.sh "-DPACKAGE_DEMO_X64" bin/build-mac.sh "-DPACKAGE_SUPER_X64" diff --git a/code/bin/package-x86-linux.sh b/code/bin/package-x86-linux.sh deleted file mode 100755 index 96bddb19..00000000 --- a/code/bin/package-x86-linux.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -chmod +x bin/build-linux.sh -bin/build-linux.sh "-DPACKAGE_DEMO_X86" -bin/build-linux.sh "-DPACKAGE_SUPER_X86" diff --git a/code/bin/package.bat b/code/bin/package.bat index b62d66de..3ac93361 100644 --- a/code/bin/package.bat +++ b/code/bin/package.bat @@ -1,6 +1,3 @@ @echo off -call bin\build.bat /DPACKAGE_DEMO_X64 -call bin\build.bat /DPACKAGE_DEMO_X86 call bin\build.bat /DPACKAGE_SUPER_X64 -call bin\build.bat /DPACKAGE_SUPER_X86