Skip to content

Commit

Permalink
Add a script to build a plugin zip file which contains liberty-tools-…
Browse files Browse the repository at this point in the history
…intellij and its dependent lsp4ij.

Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
  • Loading branch information
turkeylurkey committed Sep 15, 2023
1 parent 2c57e1d commit b5bcff1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions makeDualZip
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
set -x
#Must start in the liberty-tools-intellij directory
#The lsp4ij source must be cloned in the same parent directory.
export LSP4IJ_DIR=intellij-lsp-common-provider/lsp4ij
export TMP_DIR=p
export LT_INTELLIJ_ZIP=liberty-tools-intellij-23.0.7-SNAPSHOT.zip
export LT_INTELLIJ_UBER_ZIP=$LT_INTELLIJ_ZIP.uber.zip # yes two zips
export LSP4IJ_ZIP=lsp4ij-0.0.4.zip
export JETBRAINS_DIST_DIR=build/distributions

gradle clean buildPlugin
# Run the other build and return to this directory
(cd ../$LSP4IJ_DIR && gradle clean buildPlugin)

# Clean up
[ ! -d $TMP_DIR ] && mkdir $TMP_DIR
rm -rf $TMP_DIR/*
cd $TMP_DIR

# Parent directory is liberty-tools-intellij directory
unzip ../$JETBRAINS_DIST_DIR/$LT_INTELLIJ_ZIP
# Intermingle files
unzip ../../$LSP4IJ_DIR/$JETBRAINS_DIST_DIR/$LSP4IJ_ZIP
zip -r $LT_INTELLIJ_UBER_ZIP liberty-tools-intellij lsp4ij
cp $LT_INTELLIJ_UBER_ZIP ../$JETBRAINS_DIST_DIR

0 comments on commit b5bcff1

Please sign in to comment.