Compare commits
19 Commits
6d725b05d7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a57bbc1d99 | |||
| 69ea0c8f26 | |||
| 91b7358c1d | |||
| 2811929b26 | |||
| 82ca1250e3 | |||
| fbc1d81c01 | |||
| 4e046fe1a7 | |||
| d5f4eedef5 | |||
| ef83ca6168 | |||
| 7215e43ca5 | |||
| 001b0e9521 | |||
| ffd8b2a42e | |||
| 7333ccf63c | |||
| c0a0826118 | |||
| fe9ace2b34 | |||
| c7dd75b178 | |||
| 5e1e3ebb76 | |||
| 063b788c26 | |||
| ef84c06fd5 |
65
.gitea/workflows/update.yaml
Normal file
65
.gitea/workflows/update.yaml
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
name: Auto Update Vesktop Template
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 12 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-template:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y curl jq
|
||||||
|
|
||||||
|
- name: Fetch Latest Stable Release
|
||||||
|
id: get_release
|
||||||
|
run: |
|
||||||
|
RELEASES=$(curl -s -H "User-Agent: gitea-actions" https://api.github.com/repos/Vencord/Vesktop/releases?per_page=50)
|
||||||
|
VERSION=$(echo "$RELEASES" | jq -r '[.[] | select(.tag_name | test("^v?\\d+\\.\\d+\\.\\d+$"))] | sort_by(.published_at) | reverse | .[0].tag_name' || echo "")
|
||||||
|
if [[ -z "$VERSION" ]]; then
|
||||||
|
echo "No stable release found"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
DEB_URL=$(echo "$RELEASES" | jq -r "[.[] | select(.tag_name == \"$VERSION\")] | .[0].assets[] | select(.name | test(\"vesktop_.*_amd64\\\\.deb$\")) | .browser_download_url" || echo "")
|
||||||
|
if [[ -z "$DEB_URL" ]]; then
|
||||||
|
echo "No .deb found"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
VERSION=${VERSION#v} # Remove 'v' prefix if present
|
||||||
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
echo "deb_url=$DEB_URL" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Read Current Version
|
||||||
|
if: steps.get_release.outputs.version
|
||||||
|
id: check_version
|
||||||
|
run: |
|
||||||
|
CURRENT_VERSION=$(grep '^version=' template | cut -d= -f2)
|
||||||
|
echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Download and Checksum
|
||||||
|
if: steps.get_release.outputs.version && steps.get_release.outputs.version != steps.check_version.outputs.current_version
|
||||||
|
id: download
|
||||||
|
run: |
|
||||||
|
curl -Lo vesktop.deb "${{ steps.get_release.outputs.deb_url }}"
|
||||||
|
SHA256=$(sha256sum vesktop.deb | awk '{print $1}')
|
||||||
|
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Update Template
|
||||||
|
if: steps.get_release.outputs.version && steps.get_release.outputs.version != steps.check_version.outputs.current_version
|
||||||
|
run: |
|
||||||
|
sed -i "s/^version=.*/version=${{ steps.get_release.outputs.version }}/" template
|
||||||
|
sed -i "s/^checksum=.*/checksum=${{ steps.download.outputs.sha256 }}/" template
|
||||||
|
|
||||||
|
- name: Commit and Push
|
||||||
|
if: steps.get_release.outputs.version && steps.get_release.outputs.version != steps.check_version.outputs.current_version
|
||||||
|
run: |
|
||||||
|
git config user.name "Wizzard"
|
||||||
|
git config user.email "rich@bandaholics.cash"
|
||||||
|
git add template
|
||||||
|
git commit -m "Update to v${{ steps.get_release.outputs.version }} [auto]"
|
||||||
|
git push
|
||||||
14
README.md
14
README.md
@@ -1,15 +1,3 @@
|
|||||||
# vesktop-void-template
|
# vesktop-void-template
|
||||||
|
|
||||||
This repository provides a template for installing Vesktop on Void Linux, specifically tailored for systems with GCC version 13 or higher. It's designed to simplify the process of setting up Vesktop, ensuring compatibility and ease of use on Void Linux environments.
|
This repository provides a template for installing Vesktop on Void Linux. It's designed to simplify the process of setting up Vesktop, ensuring compatibility and ease of use on Void Linux environments.
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
Ensure that your system has **GCC 13 or newer** installed, as Vesktop requires it for optimal performance. For detailed guidance on setting up your environment, please refer to the `run.sh` script included in this repository to see how it is run.
|
|
||||||
|
|
||||||
## Installation Steps
|
|
||||||
1. **Script Setup**: Place the `run.sh` script in the `/opt/Vesktop` directory. This script is crucial for correctly configuring the runtime environment for Vesktop.
|
|
||||||
2. **Desktop Entry**: To integrate Vesktop seamlessly with your desktop environment, use the provided `.desktop` file. Copy this file to `~/.local/share/applications` to make Vesktop accessible from your application menu.
|
|
||||||
|
|
||||||
## Note
|
|
||||||
The `run.sh` script contains important information about configuring your system to use Vesktop. It's recommended to review this script for a deeper understanding of the installation process and requirements.
|
|
||||||
|
|
||||||
By following these steps, users can enjoy a smooth Vesktop experience on their Void Linux system. Contributions, suggestions, and feedback are always welcome!
|
|
||||||
2
run.sh
2
run.sh
@@ -1,2 +0,0 @@
|
|||||||
export LD_LIBRARY_PATH=/opt/gcc-13.2.1/lib64:$LD_LIBRARY_PATH
|
|
||||||
./vencorddesktop
|
|
||||||
15
template
15
template
@@ -1,18 +1,17 @@
|
|||||||
# Template file for 'Vesktop'
|
|
||||||
pkgname=vesktop
|
pkgname=vesktop
|
||||||
version=0.4.4
|
version=1.6.0
|
||||||
revision=1
|
revision=1
|
||||||
archs="x86_64"
|
archs="x86_64"
|
||||||
maintainer="Wizzard <rich@bandaholics.cash>"
|
maintainer="Wizzard <rich@bandaholics.cash>"
|
||||||
short_desc="Vesktop - Your Short Description"
|
short_desc="Vesktop"
|
||||||
homepage="https://github.com/Vencord/Vesktop"
|
homepage="https://github.com/Vencord/Vesktop"
|
||||||
license="LicenseType"
|
license="LicenseType"
|
||||||
distfiles="https://github.com/Vencord/Vesktop/releases/download/v${version}/VencordDesktop_${version}_amd64.deb"
|
distfiles="https://github.com/Vencord/Vesktop/releases/download/v${version}/vesktop_${version}_amd64.deb"
|
||||||
checksum=b08f769ee19d32e27301ace10f0034594e364a1cf5bad4260d401d1eea3accaa
|
checksum=3af17d0fe0e59ac6f4672c1e877688d90f294772ea42727e1ea2820aceee2f73
|
||||||
hostmakedepends="tar xz"
|
hostmakedepends="tar xz"
|
||||||
|
|
||||||
do_extract() {
|
do_extract() {
|
||||||
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/VencordDesktop_${version}_amd64.deb
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/vesktop_${version}_amd64.deb
|
||||||
tar xf data.tar.xz -C ${wrksrc}
|
tar xf data.tar.xz -C ${wrksrc}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,6 +22,4 @@ do_install() {
|
|||||||
# Copy the files and directories
|
# Copy the files and directories
|
||||||
vcopy usr/share/* /usr/share/
|
vcopy usr/share/* /usr/share/
|
||||||
vcopy opt/Vesktop/* /opt/Vesktop/
|
vcopy opt/Vesktop/* /opt/Vesktop/
|
||||||
}
|
}
|
||||||
|
|
||||||
# Any other necessary functions or variables
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Vesktop
|
Name=Vesktop
|
||||||
Exec=/opt/Vesktop/run.sh %U
|
Exec=/opt/Vesktop/vesktop
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Icon=vencorddesktop
|
Icon=vencorddesktop
|
||||||
|
|||||||
Reference in New Issue
Block a user