Skip to content

Commit 483f7b8

Browse files
committed
version 4.3 - replacing GitHub for Wiki on main menu
1 parent 811897e commit 483f7b8

File tree

47 files changed

+1253
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1253
-78
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
debhelper-build-stamp
1111

1212
# Debian build files
13-
/src/buildfiles/deb/linuxtoys/DEBIAN/opt/linuxtoys/*
14-
/src/buildfiles/deb/linuxtoys/DEBIAN/usr
15-
/src/buildfiles/deb/linuxtoys/DEBIAN/.debhelper
13+
/src/buildfiles/deb/linuxtoys-*/debian/.debhelper
1614
/src/buildfiles/deb/linuxtoys/DEBIAN/linuxtoys
1715
/src/buildfiles/deb/*.deb
1816

@@ -28,3 +26,9 @@ debhelper-build-stamp
2826
/src/buildfiles/pkgbuild/pkg
2927
/src/buildfiles/pkgbuild/src
3028
/src/buildfiles/pkgbuild/linuxtoys-*.tar.*
29+
30+
# AppImage build files
31+
/appimagebuild/LinuxToys.AppDir/etc/*
32+
/appimagebuild/LinuxToys.AppDir/usr/lib64/*
33+
/appimagebuild/LinuxToys.AppDir/usr/bin/*
34+
/LinuxToys_-x86_64*

appimage/linuxtoys.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sudo_rq () {
1111
}
1212

1313
# updater
14-
current_ltver="4.2"
14+
current_ltver="4.3"
1515
ver_upd () {
1616
local ver
1717
ver=$(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/ver)
@@ -56,7 +56,7 @@ while true; do
5656
"$msg279" \
5757
"" \
5858
"$msg124" \
59-
"GitHub" \
59+
"Wiki" \
6060
"${msg275}" \
6161
"$msg059" \
6262
--height=530 --width=360)
@@ -77,7 +77,7 @@ while true; do
7777
"$msg279") subscript="psypicks" && _invoke_ ;;
7878
# 7) subscript="uniwine" && _invoke_ ;; -- disabled option
7979
"$msg124") zeninf "$msg125";;
80-
"GitHub") xdg-open https://github.com/psygreg/linuxtoys ;;
80+
"Wiki") xdg-open https://github.com/psygreg/linuxtoys/wiki ;;
8181
"${msg275}") xdg-open https://ko-fi.com/psygreg ;;
8282
"$msg059") break ;;
8383
*) echo "Invalid Option" ;;
Lines changed: 50 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
#!/bin/bash
22
# functions
3+
fatal() {
4+
zenity --error --title "Fatal Error" --text "$1" --height=300 --width=300
5+
exit 1
6+
}
7+
8+
# sudo request
9+
sudo_rq () {
10+
zenity --password | sudo -Sv || fatal "Wrong password. Do you have sudo?"
11+
}
312

413
# updater
5-
current_ltver="3.2"
14+
current_ltver="4.3"
615
ver_upd () {
716
local ver
817
ver=$(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/ver)
918
if [[ "$ver" != "$current_ltver" ]]; then
10-
if whiptail --title "$msg001" --yesno "$msg002" 8 78; then
11-
local title="$msg001"
12-
local msg="$msg157"
13-
_msgbox_
19+
if zenity --question --title "$msg001" --text "$msg002" --width 300 --height 300; then
20+
zeninf "$msg157"
1421
xdg-open https://github.com/psygreg/linuxtoys/releases/latest
1522
fi
1623
fi
@@ -20,53 +27,59 @@ ver_upd () {
2027
# check internet connection
2128
# ping google
2229
. /etc/os-release
23-
wget -q -O - "https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/README.md" > /dev/null || { whiptail --title "Disconnected" --msgbox "LinuxToys requires an internet connection to proceed." 8 78; exit 1; }
30+
wget -q -O - "https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/README.md" > /dev/null || fatal "LinuxToys requires an internet connection to proceed."
2431
# call linuxtoys turbobash lib
25-
source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
32+
sleep 1
33+
source linuxtoys.lib
2634
# logger
2735
logfile="$HOME/.local/linuxtoys-log.txt"
2836
_log_
2937
# language and upd checks
3038
_lang_
31-
source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/lang/${langfile})
39+
source ${langfile}
40+
sleep 1
3241
ver_upd
42+
sudo_rq
3343

3444
# main menu
35-
while :; do
45+
while true; do
3646

37-
CHOICE=$(whiptail --title "LinuxToys" --menu "LinuxToys ${current_ltver}" 25 78 16 \
38-
"0" "$msg120" \
39-
"1" "$msg121" \
40-
"2" "$msg122" \
41-
"3" "${msg123}*" \
42-
"4" "${msg143}*" \
43-
"5" "$msg227" \
44-
"6" "$msg199" \
45-
"" "" \
46-
"" "" \
47-
"8" "$msg124" \
48-
"9" "GitHub" \
49-
"10" "$msg059" 3>&1 1>&2 2>&3)
47+
CHOICE=$(zenity --list --title "LinuxToys" \
48+
--column="$msg274" \
49+
"$msg120" \
50+
"$msg121" \
51+
"$msg122" \
52+
"${msg123}" \
53+
"${msg143}" \
54+
"$msg227" \
55+
"$msg199" \
56+
"$msg279" \
57+
"" \
58+
"$msg124" \
59+
"Wiki" \
60+
"${msg275}" \
61+
"$msg059" \
62+
--height=530 --width=360)
5063
#"7" "UniWine" \ -- disabled option
5164

52-
exitstatus=$?
53-
if [ $exitstatus != 0 ]; then
54-
# Exit the script if the user presses Esc
55-
find "$HOME" -maxdepth 1 -type f -name '*supermenu.sh' -exec rm -f {} + && break
56-
fi
65+
if [ $? -ne 0 ]; then
66+
find "$HOME" -maxdepth 1 -type f -name '*.sh' -exec rm -f {} + && break
67+
fi
5768

5869
case $CHOICE in
59-
0) supmenu="usupermenu" && _invoke_ ;;
60-
1) supmenu="osupermenu" && _invoke_ ;;
61-
2) supmenu="gsupermenu" && _invoke_ ;;
62-
3) supmenu="esupermenu" && _invoke_ ;;
63-
4) supmenu="dsupermenu" && _invoke_ ;;
64-
5) subscript="pdefaults" && _invoke_ ;;
65-
6) supmenu="csupermenu" && _invoke_ ;;
70+
"$msg120") supmenu="usupermenu" && _invoke_ ;;
71+
"$msg121") supmenu="osupermenu" && _invoke_ ;;
72+
"$msg122") supmenu="gsupermenu" && _invoke_ ;;
73+
"${msg123}") supmenu="esupermenu" && _invoke_ ;;
74+
"${msg143}") supmenu="dsupermenu" && _invoke_ ;;
75+
"$msg227") subscript="pdefaults" && _invoke_ ;;
76+
"$msg199") supmenu="csupermenu" && _invoke_ ;;
77+
"$msg279") subscript="psypicks" && _invoke_ ;;
6678
# 7) subscript="uniwine" && _invoke_ ;; -- disabled option
67-
8) whiptail --title "LinuxToys v${current_ltver}" --msgbox "$msg125" 8 78 ;;
68-
9) xdg-open https://github.com/psygreg/linuxtoys ;;
69-
10 | q) break ;;
79+
"$msg124") zeninf "$msg125";;
80+
"Wiki") xdg-open https://github.com/psygreg/linuxtoys/wiki ;;
81+
"${msg275}") xdg-open https://ko-fi.com/psygreg ;;
82+
"$msg059") break ;;
7083
*) echo "Invalid Option" ;;
7184
esac
7285
done

src/buildfiles/deb/builddeb.sh

100644100755
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
# ask version to package
33
read -p "Version number: " lt_version
44
# set up dir structure
5-
mkdir -p linuxtoys_${lt_version}.orig/usr || echo "fatal error 1" && sleep 3 && exit 1
6-
mv linuxtoys-* linuxtoys-${lt_version} || echo "fatal error 2" && sleep 3 && exit 2
7-
cp -r linuxtoys-${lt_version}/debian/usr/* linuxtoys_${lt_version}.orig/usr
8-
tar -cJf linuxtoys_${lt_version}.orig.tar.xz linuxtoys_${lt_version}.orig/
5+
mkdir -p linuxtoys_$lt_version.orig/usr
6+
mv linuxtoys-* linuxtoys-$lt_version
7+
cp -rf linuxtoys-$lt_version/debian/usr/* linuxtoys_$lt_version.orig/usr
8+
tar -cJf linuxtoys_$lt_version.orig.tar.xz linuxtoys_$lt_version.orig/
99
# set changelog file
1010
day=$(date +%d)
11-
day_abbr=$(date +%a)
12-
month=$(date +%b)
11+
day_abbr=$(LC_TIME=C date +%a) # This will always be in English
12+
month=$(LC_TIME=C date +%b)
1313
year=$(date +%Y)
1414
changelog_line="linuxtoys (${lt_version}-1) noble; urgency=medium"
1515
changelog_line2=" -- Victor Gregory <[email protected]> ${day_abbr}, ${day} ${month} ${year} 3:00:47 -0300"
1616
sed -i "1c\\$changelog_line" linuxtoys-${lt_version}/debian/changelog
1717
sed -i "5c\\$changelog_line2" linuxtoys-${lt_version}/debian/changelog
1818
# build package
19-
cd linuxtoys-${lt_version} || echo "fatal error 3" && sleep 3 && exit 3
19+
cd linuxtoys-${lt_version}
2020
debuild -us -uc # this builder script requires devscripts!!
2121
echo "All done" && sleep 3 && exit 0

src/buildfiles/deb/linuxtoys-4.2/debian/changelog

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/buildfiles/deb/linuxtoys-4.2/debian/files

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
linuxtoys (4.3-1) noble; urgency=medium
2+
3+
* Distribution packaging reinstated
4+
5+
-- Victor Gregory <[email protected]> sáb, 09 ago 2025 3:00:47 -0300
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
linuxtoys_4.3-1_amd64.buildinfo utils optional
2+
linuxtoys_4.3-1_amd64.deb utils optional

0 commit comments

Comments
 (0)