mirror of
https://github.com/Snigdha-OS/snigdhaos-core.git
synced 2025-09-05 12:16:40 +02:00
Updated all packages
This commit is contained in:
@@ -1,74 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#-----------------------------------------------------------
|
||||
# Script to generate a list of package details from a GitHub repository URL
|
||||
# Author: RiO <d3v1l0n@outlook.in>
|
||||
# Date: 2024-12-27
|
||||
# Description: This script fetches the list of package filenames
|
||||
# from a specified GitHub repository and processes them into a clean output.
|
||||
# It also removes duplicate package names and version info.
|
||||
#-----------------------------------------------------------
|
||||
|
||||
# GitHub API URL for the directory
|
||||
repo_url="https://api.github.com/repos/Snigdha-OS/snigdhaos-core/contents/x86_64"
|
||||
|
||||
# Output file
|
||||
output_file="packages.txt"
|
||||
|
||||
# Function to check if a command is available
|
||||
command_check() {
|
||||
command -v "$1" &> /dev/null
|
||||
}
|
||||
|
||||
# Function to install a package if not installed (for Arch Linux)
|
||||
install_package() {
|
||||
package="$1"
|
||||
echo "$package is not installed. Attempting to install..."
|
||||
|
||||
# Check if the system is using the pacman package manager (Arch Linux)
|
||||
if command_check "pacman"; then
|
||||
sudo pacman -Sy --noconfirm "$package"
|
||||
else
|
||||
echo "Error: Could not detect pacman package manager. Please install $package manually."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify if the package was successfully installed
|
||||
if command_check "$package"; then
|
||||
echo "$package has been installed successfully."
|
||||
else
|
||||
echo "Error: Failed to install $package. Please install it manually."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to fetch and process the package list (only package names, with duplicates removed and version removed)
|
||||
fetch_packages() {
|
||||
# Ensure curl and jq are installed
|
||||
if ! command_check "curl"; then
|
||||
install_package "curl"
|
||||
fi
|
||||
|
||||
if ! command_check "jq"; then
|
||||
install_package "jq"
|
||||
fi
|
||||
|
||||
# Fetch the directory content from the GitHub API, extract package names, remove version and duplicates
|
||||
echo "Fetching package list from GitHub repository..."
|
||||
curl -s "$repo_url" | \
|
||||
jq -r '.[].name' | \
|
||||
grep -oP '^[^/]+(?=-[0-9]+-[a-z0-9]+\.pkg\.tar\.zst)' | \
|
||||
sort | \
|
||||
uniq > "$output_file"
|
||||
|
||||
# Check if the output file is generated successfully
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo "Generated $output_file with package names (duplicates and versions removed)."
|
||||
else
|
||||
echo "Error: Failed to generate the package list."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Run the function to fetch and process packages
|
||||
fetch_packages
|
@@ -1,49 +0,0 @@
|
||||
[
|
||||
{
|
||||
"name": "snigdhaos-asian-fonts",
|
||||
"version": "r363.926bf4d8",
|
||||
"description": "Meta-package containing common asian fonts"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "snigdhaos-grub-theme",
|
||||
"version": "r15.3e36d6c",
|
||||
"description": "Grub Theme For Snigdha OS"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "snigdhaos-keyring",
|
||||
"version": "r332.68a02606",
|
||||
"description": "Keyring for Snigdha OS."
|
||||
},
|
||||
|
||||
{
|
||||
"name": "snigdhaos-libs",
|
||||
"version": "r345.8a191fb0",
|
||||
"description": "Libs for Snigdha OS"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "snigdhaos-lsb-release",
|
||||
"version": "2.0.r55.a25a4fc",
|
||||
"description": "LSB version query program for Snigdha OS"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "snigdhaos-mirrorlist",
|
||||
"version": "r331.bdb761c5",
|
||||
"description": "Snigdha OS mirrorlist."
|
||||
},
|
||||
|
||||
{
|
||||
"name": "snigdhaos-sddm-sugar-candy",
|
||||
"version": "r1.3dabe46",
|
||||
"description": "Sugar Candy is the sweetest login theme available for the SDDM display manager."
|
||||
},
|
||||
|
||||
{
|
||||
"name": "snigdhaos-welcome",
|
||||
"version": "r64.4e7eba2",
|
||||
"description": "Snigdha OS Welcome App"
|
||||
}
|
||||
]
|
@@ -1,8 +0,0 @@
|
||||
snigdhaos-asian-fonts
|
||||
snigdhaos-grub-theme
|
||||
snigdhaos-keyring
|
||||
snigdhaos-libs
|
||||
snigdhaos-lsb-release
|
||||
snigdhaos-mirrorlist
|
||||
snigdhaos-sddm-sugar-candy
|
||||
snigdhaos-welcome
|
@@ -1,4 +1,4 @@
|
||||
sudo pacman-key --recv-key 93BC54415EA8E7AB --keyserver keyserver.ubuntu.com
|
||||
sudo pacman-key --lsign-key 93BC54415EA8E7AB
|
||||
sudo pacman -U 'https://github.com/Snigdha-OS/snigdhaos-core/blob/master/x86_64/snigdhaos-keyring-r332.68a02606-1-any.pkg.tar.zst'
|
||||
sudo pacman -U 'https://github.com/Snigdha-OS/snigdhaos-core/blob/master/x86_64/snigdhaos-mirrorlist-r331.bdb761c5-1-any.pkg.tar.zst'
|
||||
sudo pacman-key --recv-key 1CC586C7A25E47C5 --keyserver keyserver.ubuntu.com
|
||||
sudo pacman-key --lsign-key 1CC586C7A25E47C5
|
||||
sudo pacman -U 'https://github.com/Snigdha-OS/snigdhaos-core/blob/master/x86_64/snigdhaos-keyring-1.0.0-1-any.pkg.tar.zst'
|
||||
sudo pacman -U 'https://github.com/Snigdha-OS/snigdhaos-core/blob/master/x86_64/snigdhaos-mirrorlist-1.0.0-1-any.pkg.tar.zst'
|
||||
|
BIN
x86_64/fonts-tlwg-0.7.3-1-any.pkg.tar.zst
Normal file
BIN
x86_64/fonts-tlwg-0.7.3-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/fonts-tlwg-0.7.3-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/fonts-tlwg-0.7.3-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
BIN
x86_64/lohit-fonts-1.0.0-1-any.pkg.tar.zst
Normal file
BIN
x86_64/lohit-fonts-1.0.0-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/lohit-fonts-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/lohit-fonts-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
BIN
x86_64/lynxfetch-1.0.2-1-any.pkg.tar.zst
Normal file
BIN
x86_64/lynxfetch-1.0.2-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/lynxfetch-1.0.2-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/lynxfetch-1.0.2-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
BIN
x86_64/powershell-7.4.6-1-x86_64.pkg.tar.zst.sig
Normal file
BIN
x86_64/powershell-7.4.6-1-x86_64.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,49 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#-----------------------------------------------------------
|
||||
# Script to update Snigdha OS Core repository
|
||||
# Author : Eshan Roy
|
||||
# Author URI : https://eshanized.github.io
|
||||
# Contributor : RiO
|
||||
# Contributor URI : https://d3v1l0n.github.io
|
||||
# Date : 2024-12-27
|
||||
# Description : This script updates the Snigdha OS Core repository
|
||||
# by adding new package files and updating the database files.
|
||||
#-----------------------------------------------------------
|
||||
|
||||
# Set the name for the repository database
|
||||
repo_name="snigdhaos-core"
|
||||
|
||||
# Function to handle errors
|
||||
handle_error() {
|
||||
echo "Error: $1"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Step 1: Remove old packages and database files
|
||||
echo "Cleaning up old package and database files..."
|
||||
rm -f "${repo_name}"* || handle_error "Failed to remove old packages."
|
||||
|
||||
# Step 2: Adding new packages to the repository
|
||||
echo "Adding new packages to the repository..."
|
||||
repo-add -s -n -R "${repo_name}.db.tar.gz" *.pkg.tar.zst || handle_error "Failed to add packages."
|
||||
|
||||
# Sleep to ensure all files are processed
|
||||
sleep 1
|
||||
|
||||
# Step 3: Remove old database and files
|
||||
echo "Cleaning up old database and files..."
|
||||
rm -f "${repo_name}.db" "${repo_name}.db.sig" "${repo_name}.files" "${repo_name}.files.sig" || handle_error "Failed to remove old database files."
|
||||
|
||||
# Step 4: Move new files into place
|
||||
echo "Moving new database and file archive..."
|
||||
mv -f "${repo_name}.db.tar.gz" "${repo_name}.db" || handle_error "Failed to move database file."
|
||||
mv -f "${repo_name}.db.tar.gz.sig" "${repo_name}.db.sig" || handle_error "Failed to move database signature file."
|
||||
mv -f "${repo_name}.files.tar.gz" "${repo_name}.files" || handle_error "Failed to move files archive."
|
||||
mv -f "${repo_name}.files.tar.gz.sig" "${repo_name}.files.sig" || handle_error "Failed to move files signature."
|
||||
|
||||
# Step 5: Confirmation
|
||||
echo "Repository updated successfully!"
|
||||
echo "*******************************************************************************"
|
||||
echo "You can now sync the repository with 'pacman -Sy' to fetch the latest packages."
|
||||
echo "*******************************************************************************"
|
BIN
x86_64/snigdhaos-asian-fonts-1.0.0-1-any.pkg.tar.zst
Normal file
BIN
x86_64/snigdhaos-asian-fonts-1.0.0-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/snigdhaos-asian-fonts-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/snigdhaos-asian-fonts-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
x86_64/snigdhaos-core.db
Symbolic link
1
x86_64/snigdhaos-core.db
Symbolic link
@@ -0,0 +1 @@
|
||||
snigdhaos-core.db.tar.gz
|
Binary file not shown.
BIN
x86_64/snigdhaos-core.db.tar.gz
Normal file
BIN
x86_64/snigdhaos-core.db.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
1
x86_64/snigdhaos-core.files
Symbolic link
1
x86_64/snigdhaos-core.files
Symbolic link
@@ -0,0 +1 @@
|
||||
snigdhaos-core.files.tar.gz
|
Binary file not shown.
BIN
x86_64/snigdhaos-core.files.tar.gz
Normal file
BIN
x86_64/snigdhaos-core.files.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
x86_64/snigdhaos-grub-theme-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/snigdhaos-grub-theme-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
BIN
x86_64/snigdhaos-keyring-1.0.0-1-any.pkg.tar.zst
Normal file
BIN
x86_64/snigdhaos-keyring-1.0.0-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/snigdhaos-keyring-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/snigdhaos-keyring-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
x86_64/snigdhaos-libs-1.0.0-1-any.pkg.tar.zst
Normal file
BIN
x86_64/snigdhaos-libs-1.0.0-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/snigdhaos-libs-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/snigdhaos-libs-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
x86_64/snigdhaos-lsb-release-1.0.0-1-any.pkg.tar.zst
Normal file
BIN
x86_64/snigdhaos-lsb-release-1.0.0-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/snigdhaos-lsb-release-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/snigdhaos-lsb-release-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
x86_64/snigdhaos-mirrorlist-1.0.0-1-any.pkg.tar.zst
Normal file
BIN
x86_64/snigdhaos-mirrorlist-1.0.0-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/snigdhaos-mirrorlist-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/snigdhaos-mirrorlist-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
x86_64/snigdhaos-sddm-sugar-candy-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/snigdhaos-sddm-sugar-candy-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
BIN
x86_64/snigdhaos-welcome-1.0.0-1-any.pkg.tar.zst
Normal file
BIN
x86_64/snigdhaos-welcome-1.0.0-1-any.pkg.tar.zst
Normal file
Binary file not shown.
BIN
x86_64/snigdhaos-welcome-1.0.0-1-any.pkg.tar.zst.sig
Normal file
BIN
x86_64/snigdhaos-welcome-1.0.0-1-any.pkg.tar.zst.sig
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user