mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-13 11:09:10 +01:00
Comment the daemon & cli zipfile creation scripts
This commit is contained in:
parent
8382419a3b
commit
365ed4cc42
2 changed files with 38 additions and 2 deletions
|
@ -7,26 +7,44 @@ export GRADLE_DIST_NAME="cli.tar"
|
|||
export GRADLE_DIST_PATH="../build/distributions/$GRADLE_DIST_NAME"
|
||||
|
||||
arrangegradledist() {
|
||||
# Arrange $BISQ_RELEASE_NAME directory structure to contain a runnable
|
||||
# jar at the top-level, and a lib dir containing dependencies:
|
||||
# .
|
||||
# |
|
||||
# |__ cli.jar
|
||||
# |__ lib
|
||||
# |__ |__ dep1.jar
|
||||
# |__ |__ dep2.jar
|
||||
# |__ |__ ...
|
||||
# Copy the build's distribution tarball to this directory.
|
||||
cp -v $GRADLE_DIST_PATH .
|
||||
# Create a clean directory to hold the tarball's content.
|
||||
rm -rf $BISQ_RELEASE_NAME
|
||||
mkdir $BISQ_RELEASE_NAME
|
||||
tar -xf $GRADLE_DIST_NAME -C bisq-cli-release
|
||||
# Extract the tarball's content into $BISQ_RELEASE_NAME.
|
||||
tar -xf $GRADLE_DIST_NAME -C $BISQ_RELEASE_NAME
|
||||
cd $BISQ_RELEASE_NAME
|
||||
# Rearrange $BISQ_RELEASE_NAME contents: move the lib directory up one level.
|
||||
mv -v cli/lib .
|
||||
# Rearrange $BISQ_RELEASE_NAME contents: remove the cli/bin and cli directories.
|
||||
rm -rf cli
|
||||
# Rearrange $BISQ_RELEASE_NAME contents: move the lib/cli.jar up one level.
|
||||
mv -v lib/cli.jar .
|
||||
}
|
||||
|
||||
writemanifest() {
|
||||
# Make the cli.jar runnable, and define its dependencies in a MANIFEST.MF update.
|
||||
echo "Main-Class: bisq.cli.CliMain" > manifest-update.txt
|
||||
printf "Class-Path: " >> manifest-update.txt
|
||||
for file in lib/*
|
||||
do
|
||||
# Each new line in the classpath must be preceded by two spaces.
|
||||
printf " %s\n" "$file" >> manifest-update.txt
|
||||
done
|
||||
}
|
||||
|
||||
updatemanifest() {
|
||||
# Append contents of to cli.jar's MANIFEST.MF.
|
||||
jar uvfm cli.jar manifest-update.txt
|
||||
}
|
||||
|
||||
|
|
|
@ -7,26 +7,44 @@ export GRADLE_DIST_NAME="daemon.tar"
|
|||
export GRADLE_DIST_PATH="../build/distributions/$GRADLE_DIST_NAME"
|
||||
|
||||
arrangegradledist() {
|
||||
# Arrange $BISQ_RELEASE_NAME directory structure to contain a runnable
|
||||
# jar at the top-level, and a lib dir containing dependencies:
|
||||
# .
|
||||
# |
|
||||
# |__ daemon.jar
|
||||
# |__ lib
|
||||
# |__ |__ dep1.jar
|
||||
# |__ |__ dep2.jar
|
||||
# |__ |__ ...
|
||||
# Copy the build's distribution tarball to this directory.
|
||||
cp -v $GRADLE_DIST_PATH .
|
||||
# Create a clean directory to hold the tarball's content.
|
||||
rm -rf $BISQ_RELEASE_NAME
|
||||
mkdir $BISQ_RELEASE_NAME
|
||||
tar -xf $GRADLE_DIST_NAME -C bisq-daemon-release
|
||||
# Extract the tarball's content into $BISQ_RELEASE_NAME.
|
||||
tar -xf $GRADLE_DIST_NAME -C $BISQ_RELEASE_NAME
|
||||
cd $BISQ_RELEASE_NAME
|
||||
# Rearrange $BISQ_RELEASE_NAME contents: move the lib directory up one level.
|
||||
mv -v daemon/lib .
|
||||
# Rearrange $BISQ_RELEASE_NAME contents: remove the daemon/bin and daemon directories.
|
||||
rm -rf daemon
|
||||
# Rearrange $BISQ_RELEASE_NAME contents: move the lib/daemon.jar up one level.
|
||||
mv -v lib/daemon.jar .
|
||||
}
|
||||
|
||||
writemanifest() {
|
||||
# Make the daemon.jar runnable, and define its dependencies in a MANIFEST.MF update.
|
||||
echo "Main-Class: bisq.daemon.app.BisqDaemonMain" > manifest-update.txt
|
||||
printf "Class-Path: " >> manifest-update.txt
|
||||
for file in lib/*
|
||||
do
|
||||
# Each new line in the classpath must be preceded by two spaces.
|
||||
printf " %s\n" "$file" >> manifest-update.txt
|
||||
done
|
||||
}
|
||||
|
||||
updatemanifest() {
|
||||
# Append contents of to daemon.jar's MANIFEST.MF.
|
||||
jar uvfm daemon.jar manifest-update.txt
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue