generated from Huluvu424242/rades-example.template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from FunThomas424242/#27_appimage
close #27 appimage
- Loading branch information
Showing
22 changed files
with
3,674 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[${ticket:".*"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env sh | ||
|
||
export ARCH=x86_64 | ||
export CUR_DIR=${PWD}/ | ||
export APP_DIR=target/AppDir/ | ||
export BUILD_DIR=target/appbuild/ | ||
export RESOURCE_DIR=src/appimage-resources/ | ||
export JDK_ARCHIVE_NAME=OpenJDK11U-jdk_x64_linux_openj9_11.0.3_7_openj9-0.14.3.tar.gz | ||
|
||
# download jre 11 | ||
wget -P ${BUILD_DIR} -c https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.3%2B7_openj9-0.14.3/${JDK_ARCHIVE_NAME} | ||
tar -C ${BUILD_DIR} -xf ${BUILD_DIR}${JDK_ARCHIVE_NAME} | ||
|
||
# list deps modules | ||
${BUILD_DIR}jdk-11.0.3+7/bin/jdeps --list-deps ./target/jenkinsmonitor-*-jar-with-dependencies.jar | ||
|
||
# spezielles jre bauen | ||
${BUILD_DIR}jdk-11.0.3+7/bin/jlink --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.desktop,java.logging,java.management,java.naming,java.security.jgss,java.sql,java.xml --output ${BUILD_DIR}usr | ||
|
||
# copy binary | ||
mkdir ${APP_DIR} | ||
cp -Rf ${BUILD_DIR}usr ${APP_DIR} | ||
|
||
# download AppImageKit and give permissions und run it | ||
wget -P ${BUILD_DIR} -c https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage | ||
chmod +x ${BUILD_DIR}appimagetool-x86_64.AppImage | ||
#wget -P ${BUILD_DIR} https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | ||
#chmod +x ${BUILD_DIR}linuxdeploy-x86_64.AppImage | ||
|
||
|
||
# copy resources at final place and create sym links | ||
cp -a ./target/jenkinsmonitor-*-jar-with-dependencies.jar ${APP_DIR}usr/bin/jenkinsmonitor-jar-with-dependencies.jar | ||
cp -Rf ${RESOURCE_DIR}* ${APP_DIR} | ||
cd "${APP_DIR}" | ||
ln -s ./usr/bin/jenkinsmonitor.wrapper ./AppRun | ||
ln -s ./usr/share/metainfo/com.github.funthomas424242.jenkinsmonitor.metainfo.xml ./usr/share/metainfo/jenkinsmonitor.appdata.xml | ||
ln -s ./usr/share/applications/jenkinsmonitor.desktop ./jenkinsmonitor.desktop | ||
ln -s ./usr/share/icons/theme/320x235/1984EmmanuelGoldstein.png ./usr/share/icons/theme/256x256/1984EmmanuelGoldstein.png | ||
ln -s ./usr/share/icons/theme/320x235/1984EmmanuelGoldstein.png ./1984EmmanuelGoldstein.png | ||
cd "${CUR_DIR}" | ||
|
||
#read -p "Press [Enter] Resourcenprüfung jetzt möglich ..." | ||
|
||
# loesche altes Image und erstelle neu | ||
rm Jenkins_Monitor*.AppImage | ||
${BUILD_DIR}appimagetool-x86_64.AppImage ${APP_DIR} | ||
#${BUILD_DIR}/linuxdeploy-x86_64.AppImage --appdir ${APP_DIR} -e src/appimage-resources/launch.sh -i src/appimage-resources/1984EmmanuelGoldstein.png -d src/appimage-resources/myapp.desktop --output appimage | ||
|
||
#read -p "Press [Enter] to start remove waste files ..." | ||
#rm ${BUILD_DIR}linuxdeploy*.AppImage | ||
rm -rf ${APP_DIR}* | ||
rm -rf ${APP_DIR}.DirIcon | ||
rm -rf ${BUILD_DIR}usr | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
jlink --module-path "output;$JAVA_HOME/jmods" --add-modules com.github.funthomas424242.jenkinsmonitor --output laufZeitImage | ||
|
||
#java --module-path com.mydeveloperplanet.jpmshello/target/jpmshello-1.0-SNAPSHOT.jar;com.mydeveloperplanet.jpmshi/target/jpmshi-1.0-SNAPSHOT.jar --module com.mydeveloperplanet.jpmshello/com.mydeveloperplanet.jpmshello.HelloModules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# Herstellung der jmod Dateien für auto module | ||
# | ||
# Gezeigt am Beispiel von commons-lang | ||
# | ||
export GROUP_ID="commons-lang" | ||
export ARTIFACT_ID="commons-lang" | ||
export ARTIFACT_ID_DOT="commons.lang" | ||
export VERSION="2.6" | ||
# bereinige jdeps | ||
rm -rf ./jdeps/* | ||
# generiere Module Definition | ||
jdeps --generate-open-module ./jdeps ~/.m2/repository/${GROUP_ID}/${ARTIFACT_ID}/${VERSION}/${ARTIFACT_ID}-${VERSION}.jar | ||
jdeps --generate-module-info ./jdeps ~/.m2/repository/${GROUP_ID}/${ARTIFACT_ID}/${VERSION}/${ARTIFACT_ID}-${VERSION}.jar | ||
# compiliere module-info | ||
unzip ~/.m2/repository/${GROUP_ID}/${ARTIFACT_ID}/${VERSION}/${ARTIFACT_ID}-${VERSION}.jar -d ./jdeps/${ARTIFACT_ID_DOT}/classes | ||
javac -d ./jdeps/commons.lang/classes ./jdeps/${ARTIFACT_ID_DOT}/module-info.java | ||
# erzeuge jmod module | ||
jmod create --class-path ./jdeps/${ARTIFACT_ID_DOT}/classes src/jmods/${ARTIFACT_ID}-${VERSION}.jmod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# config file of jenkinsmonitor | ||
|
||
|
||
jenkinsauth.host-#1=http://192.168.178.54:8080 | ||
jenkinsauth.username-#1=admin | ||
jenkinsauth.password-#1=admin | ||
|
||
# valid valid >4 (value in seconds) | ||
jenkinsmonitor.pollperiod=10 | ||
|
||
# id = [a-zA-Z0-9]+ (Zahlen und Buchstaben) | ||
# joburl-id=http://localhost:8090/job/multibranchjob/job/master | ||
joburl-#1=http://192.168.178.54:8080/job/jenkinsmonitor-single/ | ||
joburl-#3=http://192.168.178.54:8080/job/test/ | ||
joburl-#5=http://localhost:8090/job/localmod/ | ||
|
Oops, something went wrong.