From 0f131774f290dc63436ffa99383321f24a63697f Mon Sep 17 00:00:00 2001 From: Humberto Dias Date: Thu, 8 Feb 2024 18:39:37 -0300 Subject: [PATCH] easy-compile-editor --- .github/workflows/compile-editor.yml | 6 +----- easy-compile-editor | 14 ++++++++++++++ editor/.gitignore | 1 + 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100755 easy-compile-editor diff --git a/.github/workflows/compile-editor.yml b/.github/workflows/compile-editor.yml index 1f2dab700..03fabfcf6 100644 --- a/.github/workflows/compile-editor.yml +++ b/.github/workflows/compile-editor.yml @@ -13,8 +13,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - path: editor - name: Set up JDK 8 for x64 uses: actions/setup-java@v3 @@ -25,9 +23,7 @@ jobs: - name: Build run: | - ls -lha - cd editor && chmod +x gradlew && ./gradlew build - ls -lha build/libs + ./easy-compile-editor - name: Archive Folder uses: actions/upload-artifact@v2 diff --git a/easy-compile-editor b/easy-compile-editor new file mode 100755 index 000000000..4d6cc8af6 --- /dev/null +++ b/easy-compile-editor @@ -0,0 +1,14 @@ +#!/bin/sh + +# If you are trying to compile Paintown from source but have no idea what to do +# try running this script. It will attempt to install all the dependencies you +# need and compile Paintown. + +echo This script uses 'sudo' to install packages. 'sudo' temporarily elevates +echo your priveleges so that new packages can be installed on your system. +echo When prompted for a password type the password you use to login. + +cd editor && ./gradlew build && cp build/libs/editor.jar . + +ls -l *.jar +echo "Here is the executable. To run it type: cd editor && ./run.sh" diff --git a/editor/.gitignore b/editor/.gitignore index c68362cbb..2cf6040c3 100644 --- a/editor/.gitignore +++ b/editor/.gitignore @@ -4,3 +4,4 @@ # Ignore Gradle build output directory build .idea +editor.jar