mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
Squashed commit of the following:
commit4743164d8eMerge:5e02037ef6b7a2Author: Lains <4886639+lainsce@users.noreply.github.com> Date: Wed Dec 7 11:50:00 2022 -0300 Merge branch 'main' into b/chkupdate commitef6b7a2259Author: Raboneko <raboneko@fyralabs.com> Date: Wed Dec 7 14:35:46 2022 +0000 Automatic Update: prismlauncher-nightly prismlauncher-qt5-nightly commit12dc462d95Author: Raboneko <raboneko@fyralabs.com> Date: Wed Dec 7 12:56:37 2022 +0000 Automatic Update: sccache commit5e02037547Author: windowsboy111 <wboy111@outlook.com> Date: Wed Dec 7 15:49:04 2022 +0800 Delete requirements.txt Signed-off-by: windowsboy111 <wboy111@outlook.com> commitdbb21831c5Merge:a720cfdaed10b2Author: lleyton <lleyton@fyralabs.com> Date: Tue Dec 6 15:50:10 2022 -0800 Merge branch 'main' into b/chkupdate commitaed10b2997Author: lleyton <lleyton@fyralabs.com> Date: Tue Dec 6 15:21:03 2022 -0800 [packages/libhelium] Fix tau-helium dependency (#62) Co-authored-by: Lains <4886639+lainsce@users.noreply.github.com> commit389abea4c5Author: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 22:12:00 2022 +0000 Automatic Update: rnote commitfea46a03f2Author: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 20:12:23 2022 +0000 Automatic Update: prismlauncher-nightly prismlauncher-qt5-nightly commit849ef368c7Author: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 19:10:44 2022 +0000 Automatic Update: openasar-canary commita720cfdaadMerge:519967ae565f09Author: lleyton <lleyton@fyralabs.com> Date: Tue Dec 6 10:27:53 2022 -0800 Merge branch 'main' into b/chkupdate commite565f0980bAuthor: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 18:14:49 2022 +0000 Automatic Update: discord-ptb commit519967a444Author: windowsboy111 <wboy111@outlook.com> Date: Tue Dec 6 22:32:25 2022 +0800 Delete update.sh Signed-off-by: windowsboy111 <wboy111@outlook.com> commit2edb2428d8Merge:437ed4c701b26fAuthor: windowsboy111 <wboy111@outlook.com> Date: Tue Dec 6 22:31:04 2022 +0800 Merge branch 'main' into b/chkupdate commit701b26febfAuthor: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 14:20:34 2022 +0000 Automatic Update: prismlauncher-nightly prismlauncher-qt5-nightly commit437ed4ce34Author: windowsboy111 <wboy111@outlook.com> Date: Tue Dec 6 21:42:52 2022 +0800 Fix stuff commit496f2a6d08Author: windowsboy111 <wboy111@outlook.com> Date: Tue Dec 6 21:42:52 2022 +0800 Fix stuff commit299a7f3807Author: windowsboy111 <wboy111@outlook.com> Date: Tue Dec 6 14:25:17 2022 +0800 Update update.yml Signed-off-by: windowsboy111 <wboy111@outlook.com> commitc58cba3adfMerge:7c15c2043145feAuthor: windowsboy111 <wboy111@outlook.com> Date: Tue Dec 6 06:14:05 2022 +0000 Merge branch 'main' into b/chkupdate commit7c15c204fdAuthor: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 04:13:53 2022 +0000 Automatic Update: libhelium commitcc00a586d1Author: seth <getchoo@tuta.io> Date: Mon Dec 5 22:11:42 2022 -0500 [prismlauncher] support EPEL and F35 (again) commitc51c562b9bAuthor: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 03:05:47 2022 +0000 Automatic Update: libhelium commit5783fc50deAuthor: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 02:16:18 2022 +0000 Automatic Update: elementary-camera commit49a92c1e2eAuthor: Raboneko <raboneko@fyralabs.com> Date: Tue Dec 6 00:54:50 2022 +0000 Automatic Update: prismlauncher-nightly prismlauncher-qt5-nightly moby-compose gcm-core commit4849cc2d3fAuthor: seth <getchoo@tuta.io> Date: Mon Dec 5 23:43:41 2022 +0000 set strict permissions for signing key Signed-off-by: seth <getchoo@tuta.io> commit9717f09d20Author: lleyton <lleyton@fyralabs.com> Date: Mon Dec 5 15:19:36 2022 -0800 runner.temp should exist... why doesn't it? (#57) commite7844d5b7dAuthor: seth <getchoo@tuta.io> Date: Mon Dec 5 03:50:24 2022 -0500 [openasar-canary] save commit on auto update this was an L and i probably need sleep commit8cd366eab5Author: seth <getchoo@tuta.io> Date: Mon Dec 5 02:25:07 2022 -0500 support auto updating more packages commitadbd9be73cAuthor: windowsboy111 <wboy111@outlook.com> Date: Mon Dec 5 18:07:46 2022 +0800 Fix build (#53) Signed-off-by: windowsboy111 <wboy111@outlook.com> Signed-off-by: windowsboy111 <wboy111@outlook.com> commita75aec0f8cAuthor: lleyton <lleyton@fyralabs.com> Date: Mon Dec 5 02:06:58 2022 -0800 I regret not using a GPG key (#56) commit6e62fec05bAuthor: seth <getchoo@tuta.io> Date: Mon Dec 5 08:35:19 2022 +0000 adopt new policies for prismlauncher (#54) * [prismlauncher] revise files to better follow fedora guidelines * add prismlauncher packages to CODEOWNERS commit8a8125db6dAuthor: lleyton <lleyton@fyralabs.com> Date: Sun Dec 4 15:51:22 2022 -0800 gpg.signingkey -> user.signingkey commit62ed4ed1fcAuthor: windowsboy111 <wboy111@outlook.com> Date: Tue Dec 6 05:43:23 2022 +0000 More update.rhai commit05257ca885Author: windowsboy111 <wboy111@outlook.com> Date: Mon Dec 5 19:34:51 2022 +0800 Modify anda.hcl commit741d90a9dfAuthor: windowsboy111 <wboy111@outlook.com> Date: Mon Dec 5 19:32:21 2022 +0800 Migrate all py to rhai woo hoooo commit04a6d0f7f9Merge:fdfa284ba3b309Author: windowsboy111 <wboy111@outlook.com> Date: Mon Dec 5 01:40:48 2022 +0000 Merge branch 'main' into b/chkupdate commitfdfa28471eAuthor: windowsboy111 <wboy111@outlook.com> Date: Tue Nov 29 21:22:07 2022 +0800 Fix commitb337711b53Author: windowsboy111 <wboy111@outlook.com> Date: Tue Nov 29 21:17:56 2022 +0800 Tidy up hcl files commitcc8acf45ddAuthor: windowsboy111 <wboy111@outlook.com> Date: Tue Nov 29 21:01:55 2022 +0800 Add for all packages: update.rhai commit52780933a9Merge:fb43ccd3e83913Author: windowsboy111 <wboy111@outlook.com> Date: Mon Nov 28 00:22:29 2022 +0800 Merge branch 'main' into b/chkupdate commitfb43ccdff1Author: windowsboy111 <wboy111@outlook.com> Date: Mon Nov 28 00:16:44 2022 +0800 Migrate to anda update commit40e5fb10d1Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 13:10:43 2022 +0800 Create chkupdate.py commit1adfa04d10Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 13:09:39 2022 +0800 Create chkupdate.py commitae6349798aAuthor: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 13:05:03 2022 +0800 Create chkupdate.py commitb5969c6723Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 13:01:50 2022 +0800 Create chkupdate.py commit762e14caa5Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:59:56 2022 +0800 Create chkupdate.py commitae15efabdfAuthor: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:57:44 2022 +0800 Create chkupdate.py commit5152ba315dAuthor: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:57:05 2022 +0800 Create chkupdate.py commit680610ab8dAuthor: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:55:52 2022 +0800 Create chkupdate.py commitd0ac2c85f3Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:55:09 2022 +0800 Create chkupdate.py commit8e75df8288Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:53:53 2022 +0800 Create chkupdate.py commit65bb02ebfeAuthor: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:52:39 2022 +0800 Create chkupdate.py commitef80995181Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:51:36 2022 +0800 Create chkupdate.py commit8d108892ecAuthor: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:50:55 2022 +0800 Create chkupdate.py commit2443e0a433Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:50:08 2022 +0800 Create chkupdate.py commitaf9678860dAuthor: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:49:33 2022 +0800 Create chkupdate.py commitcee01aed13Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:48:31 2022 +0800 Create chkupdate.py commit501323fa3aAuthor: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:47:20 2022 +0800 Create chkupdate.py commit5d638ddc34Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:46:25 2022 +0800 Create chkupdate.py commit125b184004Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:45:37 2022 +0800 Create chkupdate.py commit4a21ff6579Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:44:52 2022 +0800 Create chkupdate.py commit7e208dae45Author: windowsboy111 <wboy111@outlook.com> Date: Sun Nov 20 12:42:15 2022 +0800 Create chkupdate.py
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
||||
options: --cap-add=SYS_ADMIN --privileged
|
||||
steps:
|
||||
- name: Install packages
|
||||
run: dnf install -y rpmdevtools git python
|
||||
run: dnf install -y rpmdevtools git python anda
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -28,9 +28,9 @@ jobs:
|
||||
mkdir -p ${{ runner.temp }}
|
||||
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
|
||||
chmod 0700 ${{ runner.temp }}/signing_key
|
||||
|
||||
- name: Run Update
|
||||
run: bash ./update.sh
|
||||
|
||||
- name: Run Update (anda)
|
||||
run: anda update
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "adwaita++-icons.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("Bonandry/adwaita-plus"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "authy.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
import os
|
||||
import re
|
||||
from requests import get
|
||||
import json
|
||||
|
||||
NAME = "authy"
|
||||
SPEC = f"{NAME}.spec"
|
||||
REGEX_VER = r'Version:(\s*)([\.\d]+)\n'
|
||||
REGEX_SRC = r'Source0:(\s*)([^\n]+)\n'
|
||||
|
||||
def run_cmds(*cmds: str):
|
||||
for cmd in cmds:
|
||||
print(f"{NAME}: $ {cmd}")
|
||||
if rc := os.system(cmd):
|
||||
exit(f"{NAME}: Stopping because {rc=}")
|
||||
|
||||
raw = get('https://api.snapcraft.io/v2/snaps/info/authy', headers={'Snap-Device-Series': '16'}).text
|
||||
data = json.loads(raw)
|
||||
ver = data['channel-map'][0]['version']
|
||||
f = open(SPEC, 'r')
|
||||
content = f.read()
|
||||
found = re.findall(REGEX_VER, content)
|
||||
try:
|
||||
assert found
|
||||
curver = found[0][1]
|
||||
if ver == curver:
|
||||
exit(f"{NAME}: Up to date!")
|
||||
print(f"{NAME}: {curver} -> {ver}")
|
||||
except IndexError or AssertionError:
|
||||
exit(f"{NAME}: Failed to read spec!")
|
||||
|
||||
link = data['channel-map'][0]['download']['url']
|
||||
newspec = re.sub(REGEX_VER, f'Version:{found[0][0]}{ver}\n', content)
|
||||
newspec = re.sub(REGEX_SRC, f'Source0:{found[0][0]}{link}\n', newspec)
|
||||
f.close()
|
||||
f = open(SPEC, 'w')
|
||||
f.write(newspec)
|
||||
f.close()
|
||||
@@ -0,0 +1,5 @@
|
||||
let req = new_req("https://api.snapcraft.io/v2/snaps/info/authy");
|
||||
req.head("Snap-Device-Series", "16");
|
||||
let obj = json(req.get()) @ "channel-map" @ 0;
|
||||
rpm.version(str(obj @ "version"));
|
||||
rpm.source(0, str(obj @ "download" @ "url"));
|
||||
@@ -1,5 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "openasar-canary.spec"
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%define commit ad9b161744b27acc5e333ee70df11afca09301ef
|
||||
%define commit bb6165c1ad640ea7c45ecff2efbc01b48eaf2445
|
||||
|
||||
Name: openasar-canary
|
||||
Version: nightly.%{autogitdate}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
let req = new_req("https://api.github.com/repos/GooseMod/OpenAsar/commits/HEAD");
|
||||
req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`);
|
||||
let _sha = json(req.get()) @ "sha";
|
||||
let sha = _sha.str();
|
||||
let cur = find("%define commit (.+)", rpm.f, 1);
|
||||
if sha != cur {
|
||||
print(`openasar-canary: ${cur} -> ${sha}`);
|
||||
rpm.f = sub("%define commit (.+)", `%define commit ${sha}`, rpm.f);
|
||||
} else {
|
||||
print("openasar-canary: Up to date!");
|
||||
}
|
||||
@@ -2,4 +2,4 @@ project "pkg" {
|
||||
rpm {
|
||||
spec = "distrho.spec"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "dart.spec"
|
||||
sources = "."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "budgie-extras.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("UbuntuBudgie/budgie-extras"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "contractor.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'contractor'
|
||||
REPO = "elementary/contractor"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/contractor"))
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-calculator.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-calculator'
|
||||
REPO = "elementary/calculator"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/calculator"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-calendar.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-calendar'
|
||||
REPO = "elementary/calendar"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/calendar"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-camera.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-camera'
|
||||
REPO = "elementary/camera"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/camera"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-capnet-assist.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-capnet-assist'
|
||||
REPO = "elementary/capnet-assist"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/capnet-assist"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-code.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-code'
|
||||
REPO = "elementary/code"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/code"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-files.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-files'
|
||||
REPO = "elementary/files"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/files"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-greeter.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-greeter'
|
||||
REPO = "elementary/greeter"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/greeter"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-icon-theme.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-icon-theme'
|
||||
REPO = "elementary/icons"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/icons"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-music.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-music'
|
||||
REPO = "elementary/music"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/music"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-notifications.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-notifications'
|
||||
REPO = "elementary/notifications"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/notifications"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-onboarding.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-onboarding'
|
||||
REPO = "elementary/onboarding"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/onboarding"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-photos.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-photos'
|
||||
REPO = "elementary/photos"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/photos"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-print.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-print'
|
||||
REPO = "elementary/print"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/print"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-screenshot-tool.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-screenshot-tool'
|
||||
REPO = "elementary/screenshot"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/screenshot"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-settings-daemon.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-settings-daemon'
|
||||
REPO = "elementary/settings-daemon"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/settings-daemon"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-shortcut-overlay.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-shortcut-overlay'
|
||||
REPO = "elementary/shortcut-overlay"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/shortcut-overlay"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-sideload.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-sideload'
|
||||
REPO = "elementary/sideload"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/sideload"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-sound-theme.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-sound-theme'
|
||||
REPO = "elementary/sound-theme"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/sound-theme"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-terminal.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-terminal'
|
||||
REPO = "elementary/terminal"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/terminal"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-theme.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-theme'
|
||||
REPO = "elementary/stylesheet"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/stylesheet"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-videos.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-videos'
|
||||
REPO = "elementary/videos"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/videos"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-wallpapers.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'elementary-wallpapers'
|
||||
REPO = "elementary/wallpapers"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/wallpapers"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "gala.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'gala'
|
||||
REPO = "elementary/gala"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/gala"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "granite-7.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'granite-7'
|
||||
REPO = "elementary/granite"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/granite"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "pantheon-agent-geoclue2.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'pantheon-agent-geoclue2'
|
||||
REPO = "elementary/pantheon-agent-geoclue2"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/pantheon-agent-geoclue2"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "pantheon-agent-polkit.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'pantheon-agent-polkit'
|
||||
REPO = "elementary/pantheon-agent-polkit"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/pantheon-agent-polkit"));
|
||||
@@ -1,6 +1,5 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "pantheon-session-settings.spec"
|
||||
sources = "."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "switchboard-plug-a11y.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'switchboard-plug-a11y'
|
||||
REPO = "elementary/switchboard-plug-a11y"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("elementary/switchboard-plug-a11y"));
|
||||
@@ -1,6 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "switchboard-plug-about.spec"
|
||||
sources = "."
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'switchboard-plug-about'
|
||||
REPO = "elementary/switchboard-plug-about"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user