Skip to content

Commit 93948f5

Browse files
authored
Add files via upload
1 parent d4f77fb commit 93948f5

File tree

4 files changed

+189
-0
lines changed

4 files changed

+189
-0
lines changed

programs/x86_64-apps

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,7 @@
958958
◆ langly : Manage Laravel json language files.
959959
◆ lan-mouse : Mouse & keyboard sharing via LAN.
960960
◆ lanshare : LAN file transfer app for any kind and size of files and folders.
961+
◆ lapce : Lightning-fast and Powerful Code Editor written in Rust.
961962
◆ laravel-kit : Easy Laravel application management.
962963
◆ launcher : Generic application's launcher.
963964
◆ lbry-desktop : A browser and wallet for LBRY.
@@ -1173,6 +1174,7 @@
11731174
◆ neanes : A scorewriter for notating Byzantine chant in Byzantine notation.
11741175
◆ neon : Light wallet for NEO blockchain.
11751176
◆ nepaliunicode : An Unicode Converter app for Windows, OS X and Linux.
1177+
◆ nerdfetch : A POSIX *nix fetch script using Nerdfonts.
11761178
◆ nest-desktop : A web-based GUI application for NEST Simulator.
11771179
◆ netbeans : Apache NetBeans installers.
11781180
◆ netpad : A cross-platform C# editor and playground.
@@ -1706,6 +1708,7 @@
17061708
◆ spivak : Karaoke player based on GStreamer and Qt5.
17071709
◆ spm : A simple CLI package manager written in bash mainly for AppImages.
17081710
◆ spotify : A proprietary music streaming service (from Arch User Repository).
1711+
◆ spotify-player : A Spotify player in the terminal with full feature parity.
17091712
◆ spotify-tui : Spotify for the terminal written in Rust.
17101713
◆ spotube : Open source Spotify client that doesn't require Premium.
17111714
◆ springboard : Electron-based SpringRTS Launcher app.

programs/x86_64/lapce

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
#!/bin/sh
2+
3+
# AM INSTALL SCRIPT VERSION 3.
4+
set -u
5+
APP=lapce
6+
SITE="lapce/lapce"
7+
8+
# CREATE DIRECTORIES AND ADD REMOVER
9+
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
10+
printf "#!/bin/sh\nset -e\nrm -f /usr/local/bin/$APP\nrm -R -f /opt/$APP" > "/opt/$APP/remove"
11+
printf '\n%s' "rm -f /usr/share/applications/AM-$APP.desktop" >> "/opt/$APP/remove"
12+
chmod a+x "/opt/$APP/remove"
13+
14+
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
15+
version=$(curl -Ls https://api.github.com/repos/lapce/lapce/releases/latest | jq '.' | grep browser_download_url | grep -i linux-amd64.tar.gz | cut -d '"' -f 4 | head -1)
16+
wget "$version" || exit 1
17+
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
18+
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
19+
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
20+
cd ..
21+
if [ -d ./tmp/* 2>/dev/null ]; then mv ./tmp/*/* ./; else mv ./tmp/* ./"$APP" 2>/dev/null || mv ./tmp/* ./; fi
22+
rm -R -f ./tmp || exit 1
23+
echo "$version" > ./version
24+
chmod a+x "/opt/$APP/$APP" || exit 1
25+
26+
# LINK TO PATH
27+
ln -s "/opt/$APP/$APP" "/usr/local/bin/$APP"
28+
29+
# SCRIPT TO UPDATE THE PROGRAM
30+
cat >> "/opt/$APP/AM-updater" << 'EOF'
31+
#!/bin/sh
32+
set -u
33+
APP=lapce
34+
SITE="lapce/lapce"
35+
version0=$(cat "/opt/$APP/version")
36+
version=$(curl -Ls https://api.github.com/repos/lapce/lapce/releases/latest | jq '.' | grep browser_download_url | grep -i linux-amd64.tar.gz | cut -d '"' -f 4 | head -1)
37+
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38+
if [ "$version" != "$version0" ]; then
39+
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
40+
notify-send "A new version of $APP is available, please wait"
41+
wget "$version" || exit 1
42+
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
43+
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
44+
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
45+
cd ..
46+
if [ -d ./tmp/* 2>/dev/null ]; then mv --backup=t ./tmp/*/* ./; else mv --backup=t ./tmp/* ./"$APP" 2>/dev/null || mv --backup=t ./tmp/* ./; fi
47+
chmod a+x "/opt/$APP/$APP" || exit 1
48+
echo "$version" > ./version
49+
rm -R -f ./tmp ./*~
50+
notify-send "$APP is updated!"
51+
else
52+
echo "Update not needed!"
53+
fi
54+
EOF
55+
chmod a+x "/opt/$APP/AM-updater"
56+
57+
# ICON
58+
mkdir -p icons
59+
wget https://raw.githubusercontent.com/lapce/lapce/master/extra/images/logo.png -O ./icons/"$APP" 2> /dev/null
60+
61+
# LAUNCHER
62+
rm -f /usr/share/applications/AM-"$APP".desktop
63+
echo "[Desktop Entry]
64+
Version=1.0
65+
Type=Application
66+
67+
Name=Lapce
68+
Comment=Lightning-fast and powerful code editor written in Rust
69+
Categories=Development;IDE;
70+
GenericName=Code Editor
71+
StartupWMClass=lapce
72+
73+
Icon=dev.lapce.lapce
74+
Exec=lapce %F
75+
Terminal=false
76+
MimeType=text/plain;inode/directory;
77+
Actions=new-window;
78+
79+
[Desktop Action new-window]
80+
Name=New Window
81+
Exec=lapce --new %F
82+
Icon=/opt/$APP/icons/$APP" >> /usr/share/applications/AM-"$APP".desktop

programs/x86_64/nerdfetch

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/bin/sh
2+
3+
# AM INSTALL SCRIPT VERSION 3.
4+
set -u
5+
APP=nerdfetch
6+
SITE="ThatOneCalculator/NerdFetch"
7+
8+
# CREATE DIRECTORIES AND ADD REMOVER
9+
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
10+
printf "#!/bin/sh\nset -e\nrm -f /usr/local/bin/$APP\nrm -R -f /opt/$APP" > "/opt/$APP/remove"
11+
#printf '\n%s' "rm -f /usr/share/applications/AM-$APP.desktop" >> "/opt/$APP/remove"
12+
chmod a+x "/opt/$APP/remove"
13+
14+
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
15+
version=$(curl -Ls https://api.github.com/repos/ThatOneCalculator/NerdFetch/releases/latest | jq '.' | grep tag | cut -d '"' -f 4 | head -1)
16+
wget https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/main/nerdfetch || exit 1
17+
cd ..
18+
if [ -d ./tmp/* 2>/dev/null ]; then mv ./tmp/*/* ./; else mv ./tmp/* ./"$APP" 2>/dev/null || mv ./tmp/* ./; fi
19+
rm -R -f ./tmp || exit 1
20+
echo "$version" > ./version
21+
chmod a+x "/opt/$APP/$APP" || exit 1
22+
23+
# LINK TO PATH
24+
ln -s "/opt/$APP/$APP" "/usr/local/bin/$APP"
25+
26+
# SCRIPT TO UPDATE THE PROGRAM
27+
cat >> "/opt/$APP/AM-updater" << 'EOF'
28+
#!/bin/sh
29+
set -u
30+
APP=nerdfetch
31+
SITE="ThatOneCalculator/NerdFetch"
32+
version0=$(cat "/opt/$APP/version")
33+
version=$(curl -Ls https://api.github.com/repos/ThatOneCalculator/NerdFetch/releases/latest | jq '.' | grep tag | cut -d '"' -f 4 | head -1)
34+
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
35+
if [ "$version" != "$version0" ]; then
36+
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
37+
notify-send "A new version of $APP is available, please wait"
38+
wget https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/main/nerdfetch || exit 1
39+
cd ..
40+
if [ -d ./tmp/* 2>/dev/null ]; then mv --backup=t ./tmp/*/* ./; else mv --backup=t ./tmp/* ./"$APP" 2>/dev/null || mv --backup=t ./tmp/* ./; fi
41+
chmod a+x "/opt/$APP/$APP" || exit 1
42+
echo "$version" > ./version
43+
rm -R -f ./tmp ./*~
44+
notify-send "$APP is updated!"
45+
else
46+
echo "Update not needed!"
47+
fi
48+
EOF
49+
chmod a+x "/opt/$APP/AM-updater"

programs/x86_64/spotify-player

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/sh
2+
3+
# AM INSTALL SCRIPT VERSION 3.
4+
set -u
5+
APP=spotify-player
6+
SITE="aome510/spotify-player"
7+
8+
# CREATE DIRECTORIES AND ADD REMOVER
9+
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
10+
printf "#!/bin/sh\nset -e\nrm -f /usr/local/bin/$APP\nrm -R -f /opt/$APP" > "/opt/$APP/remove"
11+
#printf '\n%s' "rm -f /usr/share/applications/AM-$APP.desktop" >> "/opt/$APP/remove"
12+
chmod a+x "/opt/$APP/remove"
13+
14+
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
15+
version=$(curl -Ls https://api.github.com/repos/aome510/spotify-player/releases | jq '.' | grep browser_download_url | grep -i x86_64-unknown-linux-gnu.tar.gz | cut -d '"' -f 4 | head -1)
16+
wget "$version" || exit 1
17+
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
18+
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
19+
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
20+
cd ..
21+
if [ -d ./tmp/* 2>/dev/null ]; then mv ./tmp/*/* ./; else mv ./tmp/* ./"$APP" 2>/dev/null || mv ./tmp/* ./; fi
22+
rm -R -f ./tmp || exit 1
23+
echo "$version" > ./version
24+
chmod a+x "/opt/$APP/$APP" || exit 1
25+
26+
# LINK TO PATH
27+
ln -s "/opt/$APP/$APP" "/usr/local/bin/$APP"
28+
29+
# SCRIPT TO UPDATE THE PROGRAM
30+
cat >> "/opt/$APP/AM-updater" << 'EOF'
31+
#!/bin/sh
32+
set -u
33+
APP=spotify-player
34+
SITE="aome510/spotify-player"
35+
version0=$(cat "/opt/$APP/version")
36+
version=$(curl -Ls https://api.github.com/repos/aome510/spotify-player/releases | jq '.' | grep browser_download_url | grep -i x86_64-unknown-linux-gnu.tar.gz | cut -d '"' -f 4 | head -1)
37+
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38+
if [ "$version" != "$version0" ]; then
39+
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
40+
notify-send "A new version of $APP is available, please wait"
41+
wget "$version" || exit 1
42+
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
43+
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
44+
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
45+
cd ..
46+
if [ -d ./tmp/* 2>/dev/null ]; then mv --backup=t ./tmp/*/* ./; else mv --backup=t ./tmp/* ./"$APP" 2>/dev/null || mv --backup=t ./tmp/* ./; fi
47+
chmod a+x "/opt/$APP/$APP" || exit 1
48+
echo "$version" > ./version
49+
rm -R -f ./tmp ./*~
50+
notify-send "$APP is updated!"
51+
else
52+
echo "Update not needed!"
53+
fi
54+
EOF
55+
chmod a+x "/opt/$APP/AM-updater"

0 commit comments

Comments
 (0)