Skip to content

Commit

Permalink
Merge pull request #918 from vorth/jsweet-dead
Browse files Browse the repository at this point in the history
Bypassing JSweet
  • Loading branch information
vorth authored Sep 12, 2024
2 parents 9839a42 + 0c750aa commit db8c33c
Show file tree
Hide file tree
Showing 9 changed files with 133,901 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/online.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
with:
lfs: 'true'

<<<<<<< HEAD
=======
- name: Set up JDK
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -100,6 +102,7 @@ jobs:
./gradlew publishToMavenLocal -DskipSigning=true
cd ..
>>>>>>> main
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ react-vzome-*.tgz
build.properties
online/jsweetOut
transpiled-java.js
core-java.js
# core-java.js
desktop-java.js
vzome-react-vzome-*.tgz
online/dist
Expand All @@ -62,8 +62,8 @@ online-app.zip
online.tgz
deploy-to-dreamhost.sh
*.pem
online/src/worker/legacy/candies
online/src/ui/legacy/candies
# online/src/worker/legacy/candies
# online/src/ui/legacy/candies

desktop-errors.txt

Expand Down
9 changes: 9 additions & 0 deletions cicd/jsweet-legacy-code.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash

# JSweet has effectively died. Keeping it working was already far too complex,
# and now their Artifactory server is gone.

# I'm now committing the generated Typescript and Javascript, and we'll move
# forward with manual porting for any changes we do to the Java source.

# See online/build.gradle for more details.


if [ -z ${REVISION+x} ]; then
echo "This script is not meant to run as a top-level entry point. Use online.bash."
exit 1
Expand Down
6 changes: 4 additions & 2 deletions cicd/online.bash
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ buildForProduction() {
}

prepareJSweet(){
source cicd/prepare-jsweet.bash || exit $?
banner 'We are no longer using JSweet. See online/build.gradle for more details.'
# source cicd/prepare-jsweet.bash || exit $?
}

jsweet(){
source cicd/jsweet-legacy-code.bash || exit $?
banner 'We are no longer using JSweet. See online/build.gradle for more details.'
# source cicd/jsweet-legacy-code.bash || exit $?
}

devJava(){
Expand Down
9 changes: 9 additions & 0 deletions cicd/prepare-jsweet.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash

# JSweet has effectively died. Keeping it working was already far too complex,
# and now their Artifactory server is gone.

# I'm now committing the generated Typescript and Javascript, and we'll move
# forward with manual porting for any changes we do to the Java source.

# See online/build.gradle for more details.


if [ -z ${REVISION+x} ]; then
echo "This script is not meant to run as a top-level entry point."
exit 1
Expand Down
15 changes: 15 additions & 0 deletions online/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@

// JSweet has effectively died. Keeping it working was already far too complex,
// and now their Artifactory server is gone.

// I'm now committing the generated Typescript and Javascript, and we'll move
// forward with manual porting for any changes we do to the Java source.

// This build script now will only see use when we finally want to port some of
// the excluded core edits or exporters, e.g. POVRayExporter.java. Even then
// we will probably need to bypass Gradle and use Maven or just a raw Java command-line.

// For that eventuality, I have made a local copy of the relevant contents of my local
// Maven repository. See ~/vZome/jsweet-maven-repo


buildscript {
repositories {
mavenLocal()
Expand Down
Loading

0 comments on commit db8c33c

Please sign in to comment.