Skip to content

Commit

Permalink
update pkgbuild, confirm version update when packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
BKSalman committed Jan 19, 2023
1 parent 47b6748 commit 278d3b6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ytdlp-gui"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
description = "a GUI for yt-dlp written in Rust"
license = "GPL-3.0"
Expand Down
11 changes: 9 additions & 2 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[tasks.confirm]
description = "Confirm if the version was updated"
script = [
"echo \"Brother, Did you update the version? [y/n]\"",
"read yes_or_no",
"if [ $yes_or_no == \"y\" ]; then echo \"Ok :)\"; else echo \"Update it bitch!\"; exit 1; fi",
]

[tasks.myclean]
description = "Clean previous build files"
script = [
Expand All @@ -6,7 +14,6 @@ script = [
"rm -rf packages",
]


[tasks.linux_build]
description = "Build for linux"
script = [
Expand Down Expand Up @@ -90,4 +97,4 @@ script = [


[tasks.packages]
dependencies = ["myclean", "package_rpm", "package_deb", "package_aur", "package_linux", "package_windows"]
dependencies = ["confirm", "myclean", "package_rpm", "package_deb", "package_aur", "package_linux", "package_windows"]
6 changes: 3 additions & 3 deletions aur/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

pkgname=ytdlp-gui
_pkgname=ytdlp-gui
pkgver=0.2.2
pkgrel=2
pkgver=0.2.3
pkgrel=1
pkgdesc="a GUI for yt-dlp written in Rust"
url="https://github.com/BKSalman"
license=("GPL3")
Expand All @@ -15,7 +15,7 @@ provides=("ytdlp-gui")
conflicts=("ytdlp-gui")

source=("${url}/ytdlp-gui/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=("8e5d773f8b330359160ef398e9de5d34e2e4ced3ffc94d7570e2e6af112b5d9b")
sha256sums=("4de0ca30da2bb4b8114ee2e29f2e2c94b2d965c2a66b77ab813300ff5c587908")

build() {
cd "$_pkgname-${pkgver}"
Expand Down

0 comments on commit 278d3b6

Please sign in to comment.