Compare commits

...

40 Commits

Author SHA1 Message Date
50ae536650 Merge branch 'master' into wallhaven
Some checks failed
/ release x86_64-unknown-linux-musl (push) Failing after 3s
2025-01-02 16:15:18 +11:00
ce12890f17 Removed debug print
prepended _ to count variable
2025-01-02 16:11:48 +11:00
8e5c810a11 try alma ( i know apt will fail )
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 11s
2024-12-05 20:20:26 +11:00
e622041d01 Upgrade base image?
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 1m20s
2024-12-05 19:57:24 +11:00
4c5c9fe8ed asdasd
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 16s
2024-12-05 19:51:50 +11:00
75dce310be asdasf 2024-12-05 19:50:13 +11:00
6427ecd098 asdasd 2024-12-05 19:49:50 +11:00
67c2d1d31b This needs to be a string? 2024-12-05 19:49:30 +11:00
7003bb8889 dsfsd 2024-12-05 19:48:47 +11:00
9b14066148 dfsf
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 18s
2024-12-05 19:47:47 +11:00
cf6d3e59f1 Fixed apt prompting
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 18s
2024-12-05 19:46:46 +11:00
bfc113b0fb Fixed apt
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 6s
2024-12-05 19:45:26 +11:00
55f831b38c asdasd
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 4s
2024-12-05 19:42:56 +11:00
3a233b610f fdgfd
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 4s
2024-12-05 19:42:15 +11:00
f8db89198f dsfds
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 0s
2024-12-05 19:41:04 +11:00
f9151fd192 revert to old 2024-12-05 19:40:41 +11:00
ef884214b9 fsdf 2024-12-05 19:40:04 +11:00
db9e936d1e work? 2024-12-05 19:38:57 +11:00
5b628744c2 dfghfd 2024-12-05 19:35:51 +11:00
125188755e pls work 2024-12-05 19:34:20 +11:00
6aedd1cabf gfdgh 2024-12-05 19:33:59 +11:00
7b2e1de201 gdfh 2024-12-05 19:33:33 +11:00
7506503def asdad 2024-12-05 19:32:11 +11:00
e0337e0114 asd 2024-12-05 19:31:48 +11:00
d48bbc471c zxcxz 2024-12-05 19:30:10 +11:00
2bb9933431 ARRRRRRRRRGH 2024-12-05 19:28:38 +11:00
9751eec5bc x 2024-12-05 19:28:11 +11:00
cf0d7f85eb I swear to fucking god 2024-12-05 19:27:50 +11:00
cd10baa335 x 2024-12-05 19:27:27 +11:00
0d8ffd5d15 Maybe? 2024-12-05 19:27:03 +11:00
47b2e3782a formatting 2024-12-05 19:26:11 +11:00
704785b810 actions 2024-12-05 19:25:30 +11:00
e9166e1423 Fixed yaml? 2024-12-05 19:24:26 +11:00
42e4b03939 Please work 2024-12-05 19:24:04 +11:00
31be922916 fucking dbus 2024-12-05 19:22:08 +11:00
1399ebb9c4 Moved untildify to a git repo
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 13s
2024-12-05 19:16:50 +11:00
3926ccb3e7 Only MUSL no GNU
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-musl) (push) Failing after 3s
2024-12-05 19:10:19 +11:00
c0592bd98f really fixed action
Some checks failed
/ release ${{ matrix.target }} (x86_64-unknown-linux-gnu) (push) Failing after 1m26s
2024-12-05 19:07:25 +11:00
9ef385716c Fixed action 2024-12-05 19:05:14 +11:00
ebe21fe1b8 Added build action 2024-12-05 19:01:43 +11:00
4 changed files with 30 additions and 16 deletions

View File

@ -0,0 +1,26 @@
# .gitea/workflows/release.yml
on:
push:
tags:
- '*'
jobs:
release:
name: release ${{ matrix.target }}
runs-on: alma9
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@master
- name: Install deps
run: apt-get update; apt-get install -y libdbus-1-dev pkg-config
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.5
env:
GITHUB_TOKEN: ${{ secrets.GT_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: README.md

12
Cargo.lock generated
View File

@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4
[[package]]
name = "addr2line"
@ -658,10 +658,7 @@ dependencies = [
"glob",
"rand",
"reqwest",
"serde",
"serde_json",
"untildify",
"urlencoding",
]
[[package]]
@ -1259,6 +1256,7 @@ checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
[[package]]
name = "untildify"
version = "0.1.1"
source = "git+https://git.lovelynet.net/benjamyn/untildify.git?branch=main#91e595157c9720d4fb5c50595e7f601473066de2"
dependencies = [
"regex",
]
@ -1280,12 +1278,6 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "urlencoding"
version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
[[package]]
name = "utf16_iter"
version = "1.0.5"

View File

@ -8,8 +8,5 @@ configparser = "3.0.4"
dbus = "0.9.7"
glob = "0.3.1"
rand = "0.8.5"
untildify = { git = "https://git.lovelynet.net/benjamyn/untildify.git", branch = "main" }
reqwest = { version = "0.12.9", features = ["json", "blocking"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
untildify = { path = "../untildify" }
urlencoding = "2.1.3"

View File

@ -30,7 +30,7 @@ pub fn change_wallpapers(wallpapers: &Wallpapers) {
pub fn generate_js(wallpapers: &Wallpapers) -> String {
let mut javascript = String::new();
javascript.push_str("var allDesktops = desktops();\n");
for (count, monitor) in wallpapers.config.monitors.monitors.iter().enumerate() {
for (_count, monitor) in wallpapers.config.monitors.monitors.iter().enumerate() {
let mut boilerplate = String::new();
let _ = write!(
&mut boilerplate,
@ -44,6 +44,5 @@ pub fn generate_js(wallpapers: &Wallpapers) -> String {
);
javascript.push_str(&boilerplate);
}
println!("{}", javascript);
javascript
}