Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alias-calc"
version = "0.1.0"
version = "0.1.1"
edition = "2024"
license = "LicenseRef-Proprietary"
description = "A tiny, instant calculator for aliasOS"
Expand Down
16 changes: 11 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ put() {

uninstall() {
rm -f "$bindir/alias-calc" "$libdir/$library" "$appdir/$app.desktop" \
"$icondir/scalable/apps/$app.svg" "$icondir/16x16/apps/$app.svg" \
"$icondir/24x24/apps/$app.svg"
"$icondir/scalable/apps/$app.svg" "$icondir/16x16/apps/$app.png" \
"$icondir/24x24/apps/$app.png" \
"$icondir/16x16/apps/$app.svg" "$icondir/24x24/apps/$app.svg" # 0.1.0's
rmdir "$libdir" 2>/dev/null || true
# And any temporary file an install that was killed left.
for left in "$bindir"/.alias-calc.tmp.?????? "$libdir"/.alias-calc.tmp.?????? \
Expand Down Expand Up @@ -131,16 +132,21 @@ install_() {
rm -f "$entry"

# The mark at any size, and the pixel-grid files where it's drawn small.
for target in scalable:$app.svg 16x16:$app-16.svg 24x24:$app-24.svg; do
put "$here/packaging/icons/${target#*:}" "$icondir/${target%%:*}/apps/$app.svg" 644
# Those two are PNGs: launchers that index icons by name alone (aliasOS's
# shell keeps the first SVG it finds) would otherwise stretch the 16 px
# file to fill a 48 px tile. An install over 0.1.0 drops its SVGs.
put "$here/packaging/icons/$app.svg" "$icondir/scalable/apps/$app.svg" 644
for size in 16 24; do
put "$here/packaging/icons/$app-$size.png" "$icondir/${size}x$size/apps/$app.png" 644
rm -f "$icondir/${size}x$size/apps/$app.svg"
done

refresh
say "Installed Alias Calc in $destdir$prefix:"
say " $bindir/alias-calc"
say " $libdir/$library (screen readers)"
say " $appdir/$app.desktop (\"Calculator\" in the launcher)"
say " $icondir/{scalable,16x16,24x24}/apps/$app.svg"
say " $icondir/scalable/apps/$app.svg, {16x16,24x24}/apps/$app.png"
}

case "${1:-install}" in
Expand Down
Binary file added packaging/icons/com.aliasproject.calc-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packaging/icons/com.aliasproject.calc-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading