diff --git a/.gitignore b/.gitignore index 67dde32..84f32ff 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,12 @@ .import/ export.cfg -exports/ +exports/*.apk +exports/*.exe +exports/*.pck +exports/*.x86_64 +exports/*.zip +exports/web/ # Exclude imported translations *.translation diff --git a/README.md b/README.md index 397ba0a..130e635 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ -# Rat Times +# ![Logo representing a rat's butt](assets/logo.png) Rat Times Track your time, save it to a CSV file. Uses Godot 3.5 +![screenshot of the app in usage](exports/screenshot.png) + ## Features - Saves to custom CSV file. Sync this file with syncthing/nextcloud/dropbox/whatever you like +- File watcher. Change the CSV externally, see the update in the UI - Versions for Linux, Windows, Android, and presumably IOS and Mac (untested) - Custom theming possible - Does not depend on a timer, so you can close the app immediately after starting a task diff --git a/assets/rcedit-x64.exe b/assets/rcedit-x64.exe new file mode 100644 index 0000000..36764c6 Binary files /dev/null and b/assets/rcedit-x64.exe differ diff --git a/exports/.gdignore b/exports/.gdignore new file mode 100644 index 0000000..e69de29 diff --git a/exports/install-linux.sh b/exports/install-linux.sh new file mode 100755 index 0000000..2aa2c88 --- /dev/null +++ b/exports/install-linux.sh @@ -0,0 +1,47 @@ +#!/usr/bin/env bash + +usage(){ + echo "Copies the rat-times binary, data, and icon to the specified directory," + echo "then copies the desktop file to ~/.local/share/applications, while" + echo "setting the correct path" + echo "" + echo "Example Usage: install-linux.sh ~/Applications" +} + +if [ $# -eq 0 ]; then + >&2 echo "No arguments provided, please provide a valid path for installation" + usage + exit 1 +fi + + +if [ $1 = "--help" ]; then + usage + exit 0 +fi + +if [ $1 = "-h" ]; then + usage + exit 0 +fi + +dir_resolve(){ + cd "$1" 2>/dev/null || return $? # cd to desired directory; if fail, quell any error messages but return exit status + echo "`pwd -P`" # output full, link-resolved path +} + +if APP_PATH="`dir_resolve \"$1\"`"; then + SHORTCUT_PATH="$HOME/.local/share/applications/rat-times.desktop" + mkdir -p $APP_PATH + cp rat-times.x86_64 rat-times.pck rat-times.svg $APP_PATH + sed "s@REPLACE_WITH_PATH@$APP_PATH@g" rat-times.desktop > $SHORTCUT_PATH + echo "Rat Times is installed. To remove, please delete:" + echo "$APP_PATH/rat-times.x86_64" + echo "$APP_PATH/rat-times.pck" + echo "$APP_PATH/rat-times.svg" + echo "$SHORTCUT_PATH" +else + echo "Could not reach $1" +fi + + diff --git a/exports/rat-times.desktop b/exports/rat-times.desktop new file mode 100644 index 0000000..a099bb3 --- /dev/null +++ b/exports/rat-times.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Rat Times +Comment=Track your time +Exec=REPLACE_WITH_PATH/rat-times.x86_64 +Icon=REPLACE_WITH_PATH/rat-times.svg +Terminal=false +Type=Application +Categories=Game; \ No newline at end of file diff --git a/exports/rat-times.svg b/exports/rat-times.svg new file mode 100644 index 0000000..5b92d8a --- /dev/null +++ b/exports/rat-times.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + diff --git a/exports/screenshot.png b/exports/screenshot.png new file mode 100644 index 0000000..72f7ea1 Binary files /dev/null and b/exports/screenshot.png differ