Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git
installer
# ---------------------------------------------------------------------------
utile_create_launcher() {
- $log "Create ${APP_NAME}.${APP_EXTENSION}"
+ local -r FILE_APP_NAME="${APP_NAME}.${APP_EXTENSION}"
+ $log "Create ${FILE_APP_NAME}"
+
+ # Warp-packer does not seem to overwrite the file.
+ rm -f "${FILE_APP_NAME}"
# Download uses amd64, but warp-packer differs.
--input_dir "${ARG_DIR_DIST}" \
--exec "${FILE_DIST_EXEC}" \
- --output "${APP_NAME}.${APP_EXTENSION}" > /dev/null
+ --output "${FILE_APP_NAME}" > /dev/null
- chmod +x "${APP_NAME}.${APP_EXTENSION}"
+ chmod +x "${FILE_APP_NAME}"
}
src/main/java/com/scrivenvar/StatusBarNotifier.java
* Called when an exception occurs that warrants the user's attention.
*
- * @param ex The exception with a message that the user should know about.
+ * @param t The exception with a message that the user should know about.
*/
- public static void alert( final Exception ex ) {
- update( ex.getMessage() );
+ public static void alert( final Throwable t ) {
+ update( t.getMessage() );
}
src/main/java/com/scrivenvar/adapters/DocumentAdapter.java
import org.xhtmlrenderer.event.DocumentListener;
+import static com.scrivenvar.StatusBarNotifier.alert;
+
/**
* Allows subclasses to implement specific events.
@Override
public void onLayoutException( final Throwable t ) {
+ alert( t );
}
@Override
public void onRenderException( final Throwable t ) {
+ alert( t );
}
}

Update installer to overwrite executable

Author DaveJarvis <email>
Date 2020-09-16 22:14:17 GMT-0700
Commit ec782838083a013933f9234e3fa0aebe60c3bebe
Parent 1e539bf
Delta 14 lines added, 6 lines removed, 8-line increase