mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-21 18:26:11 +00:00
Compare commits
12
Commits
f04a4b000a
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3837db2df
|
||
|
|
1d42bf9126
|
||
|
|
690fefbffb
|
||
|
|
0d4df6b222
|
||
|
|
25a27e3c16
|
||
|
|
5d7e72fa2e | ||
|
|
5ba86fdf1b
|
||
|
|
26af051000
|
||
|
|
b77dd0f621
|
||
|
|
47fb9b0e64
|
||
|
|
c712f1528a
|
||
|
|
33b346785b
|
@@ -0,0 +1,63 @@
|
|||||||
|
name: CI/CD pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Fetch repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: Upgrade packages
|
||||||
|
run: sudo apt update -y && sudo apt upgrade -y
|
||||||
|
- name: Download and install dependencies
|
||||||
|
run: sudo apt install -y make golang libgl-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
|
||||||
|
- name: Build using make
|
||||||
|
run: make PREFIX=/usr SYSCONFDIR=/etc
|
||||||
|
- name: Install to root using make
|
||||||
|
run: sudo make PREFIX=/usr SYSCONFDIR=/etc install
|
||||||
|
- name: Run stormfetch
|
||||||
|
run: stormfetch
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: test
|
||||||
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && needs.test.result == 'success'
|
||||||
|
steps:
|
||||||
|
- name: Fetch repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: Check debian changelog version
|
||||||
|
run: test $(grep '^stormfetch' debian/changelog | head -n1 | grep -Po '(?<=\().*(?=\))' | cut -d '-' -f1) == ${{ github.ref_name }}
|
||||||
|
- name: Upgrade packages
|
||||||
|
run: sudo apt update -y && sudo apt upgrade -y
|
||||||
|
- name: Download and install dependencies
|
||||||
|
run: sudo apt install -y build-essential make debhelper golang libgl-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
|
||||||
|
- name: Build deb package
|
||||||
|
run: dpkg-buildpackage -b
|
||||||
|
- name: Read changelog
|
||||||
|
id: read_changelog
|
||||||
|
run: |
|
||||||
|
r=$(cat CHANGELOG.md) # Read CHANGELOG.md
|
||||||
|
r="${r//'%'/'%25'}" # Multiline escape sequences for %
|
||||||
|
r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n'
|
||||||
|
r="${r//$'\r'/'%0D'}" # Multiline escape sequences for '\r'
|
||||||
|
echo "RELEASE_BODY=$r" >> $GITHUB_OUTPUT # Set environment variable
|
||||||
|
- name: Upload deb packages release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
release_name: v${{ github.ref_name }}
|
||||||
|
file: ../*.deb
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
overwrite: true
|
||||||
|
file_glob: true
|
||||||
|
draft: true
|
||||||
|
body: |
|
||||||
|
${{ steps.read_changelog.outputs.RELEASE_BODY }}
|
||||||
@@ -5,3 +5,6 @@
|
|||||||
/build
|
/build
|
||||||
/deb/temp
|
/deb/temp
|
||||||
/deb/out
|
/deb/out
|
||||||
|
|
||||||
|
# Ignore act files
|
||||||
|
event.json
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# Stormfetch v8.0 Changelog
|
||||||
|
### Changes:
|
||||||
|
- [Add CI/CD pipeline](https://github.com/EnumeratedDev/stormfetch/commit/c712f1528af45fcd7859b28b084c3dce64d6e07c)
|
||||||
|
- [Add debian package source](https://github.com/EnumeratedDev/stormfetch/commit/f04a4b000a419181dd5eb940440676260beaae5f)
|
||||||
|
- [Separate monitor detection code into different program](https://github.com/EnumeratedDev/stormfetch/commit/da463b35e36eb4413d6ffc258f12398015fedb2b)
|
||||||
|
### Fixes
|
||||||
|
- [Return unknown GPU if device info is nil](https://github.com/EnumeratedDev/stormfetch/commit/8dfe7b3a0e0c1f95d34020b1f3fda5142f113671)
|
||||||
|
- [Fix bash version checking](https://github.com/EnumeratedDev/stormfetch/commit/8147d302c8a8d170c6942378b4b74eac77d755ac)
|
||||||
|
- [Fix multiple spaces when version number is empty](https://github.com/EnumeratedDev/stormfetch/commit/a919ffb71b78d706062030203029ef470b190e9c)
|
||||||
Vendored
+14
@@ -1,3 +1,17 @@
|
|||||||
|
stormfetch (8.0-1) trixie; urgency=medium
|
||||||
|
|
||||||
|
* Update package version to 8.0
|
||||||
|
|
||||||
|
-- EnumDev <[email protected]> Sat, 18 Apr 2026 14:18:37 +0300
|
||||||
|
|
||||||
|
stormfetch (7.4-1) trixie; urgency=medium
|
||||||
|
|
||||||
|
* Fix version number
|
||||||
|
* Update debian codename
|
||||||
|
* Fix debhelper dependency
|
||||||
|
|
||||||
|
-- EnumDev <[email protected]> Sat, 18 Apr 2026 14:18:37 +0300
|
||||||
|
|
||||||
stormfetch (7.4.3-1) stretch; urgency=medium
|
stormfetch (7.4.3-1) stretch; urgency=medium
|
||||||
|
|
||||||
* Initial packaging work with dpkg-buildpackage.
|
* Initial packaging work with dpkg-buildpackage.
|
||||||
|
|||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
9
|
||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ Source: stormfetch
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: EnumDev <[email protected]>
|
Maintainer: EnumDev <[email protected]>
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
debhelper-compat (= 13),
|
debhelper (>= 9),
|
||||||
libgl-dev,
|
libgl-dev,
|
||||||
libx11-dev,
|
libx11-dev,
|
||||||
libxcursor-dev,
|
libxcursor-dev,
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ func GetMountedPartitions(hiddenPartitions, hiddenFilesystems []string) []partit
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip snap mountpoints
|
||||||
|
if strings.HasPrefix(fields[1], "/snap/") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Skip partition if explicitly hidden
|
// Skip partition if explicitly hidden
|
||||||
if slices.Contains(hiddenPartitions, fields[0]) {
|
if slices.Contains(hiddenPartitions, fields[0]) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -205,6 +205,17 @@ func GetDEWM() DEWM {
|
|||||||
dewm.Name += " " + version
|
dewm.Name += " " + version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return dewm
|
||||||
|
} else if processExists("oxwm") {
|
||||||
|
dewm := DEWM{
|
||||||
|
Name: "OXWM",
|
||||||
|
Type: "WM",
|
||||||
|
}
|
||||||
|
|
||||||
|
if version := runCommand("oxwm --version 2>&1 | tr -d 'v'", "/bin/sh"); version != "" {
|
||||||
|
dewm.Name += " " + version
|
||||||
|
}
|
||||||
|
|
||||||
return dewm
|
return dewm
|
||||||
}
|
}
|
||||||
return DEWM{
|
return DEWM{
|
||||||
|
|||||||
Reference in New Issue
Block a user