Skip to content

Commit 6dda8fa

Browse files
authored
Version 2.0.1
See Changelog file for the list of changes.
1 parent 8a0ec16 commit 6dda8fa

File tree

3 files changed

+74
-30
lines changed

3 files changed

+74
-30
lines changed

CHANGELOG.MD

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Changelog
2+
3+
- [Changelog](#changelog)
4+
- [2.0.1](#201)
5+
- [Additions](#additions)
6+
- [Modifications:](#modifications)
7+
- [2.0.0](#200)
8+
- [Additions:](#additions-1)
9+
- [Modifications:](#modifications-1)
10+
- [Deletions:](#deletions)
11+
12+
13+
## 2.0.1
14+
15+
### Additions
16+
17+
+ Added the CHANGELOG file
18+
19+
### Modifications:
20+
21+
* Function Nomenclature: Changed functions to have only underscores
22+
* Added `-y` to automate the installation to a few commands
23+
* Modified Discord-Install script to not install discord by using the `--no-recommends` option
24+
25+
## 2.0.0
26+
27+
### Additions:
28+
29+
+ Message Logger: Log messages while performing setup
30+
+ Check Internet Connection: Checks for internet connection when running the script
31+
+ Functions: Added functions for each step making it easy to read and modify code
32+
+ Multiple Sources For Codecs Installation: Provided multiple sources to install codecs from
33+
+ Run Scriptlets: Ability to run scriptlets from the main scripts
34+
+ Argument Processing: Ability to customize an installation by using arguments
35+
+ Log File: Script statuses are saved to log file for future reference
36+
+ More Repositories: Added Games repository
37+
38+
### Modifications:
39+
40+
* VLC Installation: Existing VLC versions are removed before installing the ones from the official website
41+
* Software installation happens only if an internet connection can be established
42+
43+
### Deletions:
44+
45+
- Check For Updates: Script does not check for updates using `zypper dup`

Discord-Install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ DISCORD_URL="https://discord.com/api/download?platform=linux&format=tar.gz"
2929
# Define the target directory for downloading and extracting Discord
3030
TARGET_DIR="/tmp/discord"
3131

32-
# Install Discord RPC library
33-
sudo zypper install -y libdiscord-rpc*
34-
3532
# Remove any existing Discord installation
3633
sudo rm -rf /opt/discord
3734

@@ -65,4 +62,6 @@ Type=Application
6562
Categories=Network;InstantMessaging;
6663
EOF
6764

65+
sudo zypper install -y --no-recommends libdiscord-rpc*
66+
6867
echo "Discord installation completed!"

OpenSUSE_Installation.sh

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
############################################################
1313

14-
SCRIPT_VERSION="2.0.0"
14+
SCRIPT_VERSION="2.0.1"
1515
INTERNET_CONNECTION=true
1616

1717
LOG_FILE=/tmp/DAK404-OpenSUSE-Setup.log
@@ -147,9 +147,9 @@ codecs_install_VLC()
147147
{
148148
message_logger "[I] Started: Codecs Installation - VLC"
149149
echo "[ ATTENTION ] Installing: Codecs from VLC Repositories"
150-
sudo zypper install ffmpeg gstreamer-plugins-{good,bad,ugly,libav}
150+
sudo zypper install -y ffmpeg gstreamer-plugins-{good,bad,ugly,libav}
151151
latest_version=$(zypper search -s libavcodec | grep -Eo 'libavcodec[0-9]+' | sort -V | tail -1)
152-
sudo zypper install --from VLC --allow-vendor-change vlc-codecs x264 x265 $latest_version
152+
sudo zypper install -y --from VLC --allow-vendor-change vlc-codecs x264 x265 $latest_version
153153
message_logger "[I] Finished: Codecs Installation - VLC"
154154
}
155155

@@ -158,7 +158,7 @@ codecs_install_VLC()
158158
# ********************************************************* #
159159

160160
# Function to install KDE Utilities
161-
sw_install_kde-pkgs()
161+
sw_install_kde_pkgs()
162162
{
163163
message_logger "[I] Started: KDE Utilities Installation"
164164
echo "[ ATTENTION ] Installing: KDE Utilities"
@@ -167,7 +167,7 @@ sw_install_kde-pkgs()
167167
}
168168

169169
# Function to install Microsoft Edge and VS Code
170-
sw_install_microsoft-pkgs()
170+
sw_install_microsoft_pkgs()
171171
{
172172
message_logger "[I] Started: Installing Microsoft Edge and VS Code"
173173
echo "[ ATTENTION ] Installing: Microsoft Edge and VS Code"
@@ -176,7 +176,7 @@ sw_install_microsoft-pkgs()
176176
}
177177

178178
# Function to install GitHub Desktop and Git
179-
sw_install_git-github-pkgs()
179+
sw_install_git_github_pkgs()
180180
{
181181
message_logger "[I] Started: Installing GitHub Desktop and Git"
182182
echo "[ ATTENTION ] Installing: GitHub Desktop & Git"
@@ -185,7 +185,7 @@ sw_install_git-github-pkgs()
185185
}
186186

187187
# Function to install System Utilities
188-
sw_install_sys-util-pkgs()
188+
sw_install_sys_util_pkgs()
189189
{
190190
message_logger "[I] Started: Installing System Utilities"
191191
echo "[ ATTENTION ] Installing: System Utilities"
@@ -194,7 +194,7 @@ sw_install_sys-util-pkgs()
194194
}
195195

196196
# Function to install Gaming Components
197-
sw_install_gaming-pkgs()
197+
sw_install_gaming_pkgs()
198198
{
199199
message_logger "[I] Started: Installing WINE and Gaming Components"
200200
echo "[ ATTENTION ] Installing: WINE and Gaming Components"
@@ -203,7 +203,7 @@ sw_install_gaming-pkgs()
203203
}
204204

205205
# Function to install VLC and Codecs
206-
sw_remove_VLC-TW-Main-pkgs()
206+
sw_remove_VLC_Main_pkgs()
207207
{
208208
message_logger "[I] Started: Removing VLC and Codecs from Main Repository (OSS)"
209209
echo "[ ATTENTION ] Removing: VLC and Codecs from Main Repository (OSS)"
@@ -212,7 +212,7 @@ sw_remove_VLC-TW-Main-pkgs()
212212
}
213213

214214
# Function to install VLC and Codecs
215-
sw_install_VLC-pkgs()
215+
sw_install_VLC_pkgs()
216216
{
217217
message_logger "[I] Started: Installing VLC"
218218
echo "[ ATTENTION ] Installing: VLC"
@@ -226,7 +226,7 @@ sw_install_VLC-pkgs()
226226
# ********************************************************* #
227227

228228
# Function to install Discord using my script
229-
sw_install_Discord-script()
229+
sw_install_Discord_script()
230230
{
231231
message_logger "[I] Started: Installing Discord [Script]"
232232
echo "[ ATTENTION ] Installing: Discord"
@@ -235,7 +235,7 @@ sw_install_Discord-script()
235235
}
236236

237237
# Function to install OpenRGB using my script
238-
sw_install_OpenRGB-script()
238+
sw_install_openRGB_script()
239239
{
240240
message_logger "[I] Started: Installing OpenRGB [Script]"
241241
echo "[ ATTENTION ] Installing: OpenRGB"
@@ -244,7 +244,7 @@ sw_install_OpenRGB-script()
244244
}
245245

246246
# Function to install Gigabyte Sleep Fix using my script
247-
sw_install_Gigabyte-Sleep-Fix-script()
247+
sw_install_Gigabyte_Sleep_Fix_script()
248248
{
249249
message_logger "[I] Started: Installing Sleep Fix for Gigabyte Motherboards [Script]"
250250
echo "[ ATTENTION ] Installing: Sleep Fix for Gigabyte Motherboards"
@@ -253,7 +253,7 @@ sw_install_Gigabyte-Sleep-Fix-script()
253253
}
254254

255255
# Function to install KDE Personalization using my script
256-
sw_install_KDE-Personalization-script()
256+
sw_install_KDE_Personalization_script()
257257
{
258258
message_logger "[I] Started: Installing KDE Personalization [Script]"
259259
echo "[ ATTENTION ] Installing: Wallpaper, Kvantum and Sound Themes"
@@ -262,7 +262,7 @@ sw_install_KDE-Personalization-script()
262262
}
263263

264264
# Function to remove Flatpak and Flatpak Applications using my script
265-
sw_remove_flatpak-script()
265+
sw_remove_flatpak_script()
266266
{
267267
message_logger "[I] Started: Removing Flatpak and Flatpak Applications [Script]"
268268
echo "[ ATTENTION ] Removing: Flatpak and Flatpak Applications"
@@ -333,32 +333,32 @@ then
333333
esac
334334
done
335335

336-
sw_install_kde-pkgs
337-
sw_install_microsoft-pkgs
338-
sw_install_git-github-pkgs
339-
sw_install_sys-util-pkgs
340-
sw_install_gaming-pkgs
341-
sw_remove_VLC-TW-Main-pkgs
342-
sw_install_VLC-pkgs
336+
sw_install_kde_pkgs
337+
sw_install_microsoft_pkgs
338+
sw_install_git_github_pkgs
339+
sw_install_sys_util_pkgs
340+
sw_install_gaming_pkgs
341+
sw_remove_VLC_Main_pkgs
342+
sw_install_VLC_pkgs
343343

344344
# Process arguments and call corresponding functions
345345
for arg in "$@"
346346
do
347347
case "$arg" in
348348
discord)
349-
sw_install_Discord-script
349+
sw_install_Discord_script
350350
;;
351351
openrgb)
352-
sw_install_openRGB-script
352+
sw_install_openRGB_script
353353
;;
354354
gigabyte-sleep-fix)
355-
sw_install_Gigabyte-Sleep-Fix-script
355+
sw_install_Gigabyte_Sleep_Fix_script
356356
;;
357357
personalize)
358-
sw_install_KDE-Personalization-script
358+
sw_install_KDE_Personalization_script
359359
;;
360360
remove-flatpak)
361-
sw_remove_flatpak-script
361+
sw_remove_flatpak_script
362362
;;
363363
esac
364364
done

0 commit comments

Comments
 (0)