nativefier: Rename to rose-mklink so its easier to grasp

Added a slightly more telling helppage, add added chmod +x /usr/bin/x
so the link may actually be called.
This commit is contained in:
bellrise 2022-11-19 14:37:13 +01:00
parent 5e7587dd99
commit 00b64b6ee5
No known key found for this signature in database
GPG Key ID: 0528F3ADBD0D0FD2
5 changed files with 18 additions and 11 deletions

View File

@ -7,7 +7,7 @@
- ~400L code base
- custom gtk and websites css
- hackable without any knowledge
- builtin script nativefier
- builtin rose-mklink script for in-shell static links
#
### 👐 Contribute

View File

@ -2,5 +2,5 @@
cp -f rose /usr/bin
mkdir -p /usr/share/themes/rose
cp style.css /usr/share/themes/rose/
cp rose-nativefier /usr/bin
cp rose-mklink /usr/bin
}

BIN
rose

Binary file not shown.

16
rose-mklink Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
if [ "$1" = "--help" ] || [ -z "$1" ]; then
echo -e "usage: rose-mklink <alias> <url>\n"
echo "Create a /usr/bin link to a website."
fi
test -z "$1" || test -z "$2" || {
[ -f "/usr/bin/$1" ] && {
echo "/usr/bin/$1 already exists, remove it first"
exit 1
}
echo -e "#!/bin/sh\n\nrose $2" > /usr/bin/$1
chmod +x /usr/bin/$1
}

View File

@ -1,9 +0,0 @@
#!/bin/sh
test "$1" = "--help" && {
echo "usage: rose-nativefier <alias> <url>"
}
test -z "$1" || test -z "$2" || {
echo -e "#!/bin/sh\n\nrose $2" > /usr/bin/$1
}