Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Adds scrips and cert signing app

AuthorDaveJarvis <email>
Date2023-01-03 14:40:25 GMT-0800
Commitbb4c75e74aabe39b578424f0b6740f00ccf971e8
Parent6af8073
scripts/icons.sh
+#!/bin/bash
+
+INKSCAPE="/usr/bin/inkscape"
+PNG_COMPRESS="optipng"
+PNG_COMPRESS_OPTS="-o9 *png"
+
+declare -a SIZES=("16" "32" "64" "128" "256" "512")
+
+for i in "${SIZES[@]}"; do
+ # -y: export background opacity 0
+ $INKSCAPE -y 0 -w "${i}" --export-overwrite --export-type=png -o "logo${i}.png" "logo.svg"
+done
+
+# Compess the PNG images.
+which $PNG_COMPRESS && $PNG_COMPRESS $PNG_COMPRESS_OPTS
+
scripts/jsign-4.2.jar
Binary files differ
scripts/squish.sh
+#!/usr/bin/env bash
+
+# TODO: This file does not work with Picocli and there are other issues.
+# TODO: Revisit after replacing Picocli and using FastR instead of Renjin.
+
+MODULES="${JAVA_HOME}/jmods/"
+LIBS=$(ls -1 ../libs/*jar | sed 's/\(.*\)/-libraryjars \1/g')
+
+java -jar ../tex/lib/proguard.jar \
+ -libraryjars "${MODULES}java.base.jmod/(!**.jar;!module-info.class)" \
+ -libraryjars "${MODULES}java.desktop.jmod/(!**.jar;!module-info.class)" \
+ -libraryjars "${MODULES}java.xml.jmod/(!**.jar;!module-info.class)" \
+ -libraryjars "${MODULES}javafx.controls.jmod/(!**.jar;!module-info.class)" \
+ -libraryjars "${MODULES}javafx.graphics.jmod/(!**.jar;!module-info.class)" \
+ ${LIBS} \
+ -injars ../build/libs/keenwrite.jar \
+ -outjars ../build/libs/keenwrite-min.jar \
+ -keep 'class com.keenwrite.** { *; }' \
+ -keep 'class com.whitemagicsoftware.tex.** { *; }' \
+ -keep 'class org.renjin.** { *; }' \
+ -keep 'class picocli.** { *; }' \
+ -keep 'interface picocli.** { *; }' \
+ -keep 'class picocli.CommandLine { *; }' \
+ -keep 'class picocli.CommandLine$* { *; }' \
+ -keepattributes '*Annotation*, Signature, Exception' \
+ -keepclassmembers 'class * extends java.util.concurrent.Callable {
+ public java.lang.Integer call();
+ }' \
+ -keepclassmembers 'class * {
+ @javax.inject.Inject <init>(...);
+ @picocli.CommandLine$Option *;
+ }' \
+ -keepclassmembers 'class * extends java.lang.Enum {
+ <fields>;
+ public static **[] values();
+ public static ** valueOf(java.lang.String);
+ }' \
+ -keepnames \
+ 'class org.apache.lucene.analysis.tokenattributes.KeywordAttributeImpl' \
+ -dontnote \
+ -dontwarn \
+ -dontoptimize \
+ -dontobfuscate
+
Delta60 lines added, 0 lines removed, 60-line increase