diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.yml new file mode 100644 index 0000000..8709289 --- /dev/null +++ b/.github/workflows/snap.yml @@ -0,0 +1,35 @@ +name: Build and Publish Snap + +on: + push: + tags: + - 'v*' + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build snap + uses: snapcore/action-build@v1 + id: snapcraft + with: + snapcraft-args: snap + path: . + + - name: Upload snap to Snap Store + uses: snapcore/action-publish@v1 + with: + snap: ${{ steps.snapcraft.outputs.snap }} + release: candidate + store-login: ${{ secrets.STORE_LOGIN }} + + - name: Publish to stable + if: ${{ github.event.release.prerelease == false }} + uses: snapcore/action-publish@v1 + with: + snap: ${{ steps.snapcraft.outputs.snap }} + release: stable + store-login: ${{ secrets.STORE_LOGIN }} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2f4d029 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Didictateur + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/aur/ronrunner/PKGBUILD b/aur/ronrunner/PKGBUILD index 40767fc..6a0007f 100644 --- a/aur/ronrunner/PKGBUILD +++ b/aur/ronrunner/PKGBUILD @@ -1,18 +1,22 @@ pkgname=ronrunner -pkgver=1.0_beta1 +pkgver=1.0.0 pkgrel=1 -pkgdesc="Ron Runner - Une description courte" -arch=('x86_64') -url="https://github.com/votreusername/ronrunner" +pkgdesc="Lightweight tournament scoring application for Mahjong" +arch=('any') +url="https://github.com/Didictateur/RonRunner" license=('MIT') -source=("https://github.com/votreusername/ronrunner/releases/download/v${pkgver}/ronrunner-${pkgver}.tar.gz") -sha256sums=('HASH_A_CALCULER') +depends=('python' 'tk') +makedepends=('git' 'python-setuptools') +source=("git+https://github.com/Didictateur/RonRunner.git#tag=v${pkgver}") +sha256sums=('SKIP') build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$pkgname" + python setup.py build } package() { - cd "$srcdir/$pkgname-$pkgver" - install -Dm755 usr/bin/ronrunner "$pkgdir/usr/bin/ronrunner" + cd "$srcdir/$pkgname" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } \ No newline at end of file diff --git a/ronrunner_1.0~beta1-1/DEBIAN/changelog b/ronrunner_1.0~beta1-1/DEBIAN/changelog new file mode 100644 index 0000000..ab6fc8d --- /dev/null +++ b/ronrunner_1.0~beta1-1/DEBIAN/changelog @@ -0,0 +1,9 @@ +ronrunner (1.0.0-1) stable; urgency=medium + + * Initial release + * Add and manage players + * Create and edit tournament tables + * Automatic score calculation with ranking + * Dark modern UI with Segoe UI fonts + + -- Didictateur decosse.adrien@cosmoris.fr Mon, 10 Feb 2026 00:00:00 +0000 diff --git a/ronrunner_1.0~beta1-1/DEBIAN/control b/ronrunner_1.0~beta1-1/DEBIAN/control index d93d0e5..a2e7738 100644 --- a/ronrunner_1.0~beta1-1/DEBIAN/control +++ b/ronrunner_1.0~beta1-1/DEBIAN/control @@ -1,8 +1,21 @@ Package: ronrunner -Version: 1.0~beta1-1 -Section: utils +Version: 1.0.0 +Section: games Priority: optional Architecture: all -Depends: python3 -Maintainer: Didictateur -Description: RonRunner +Depends: python3 (>= 3.8), python3-tk +Recommends: +Suggests: +Maintainer: Didictateur decosse.adrien@cosmoris.fr +Homepage: https://github.com/Didictateur/RonRunner +Description: Lightweight tournament scoring application for Mahjong + RonRunner is a simple and fast Mahjong tournament scoring tool + featuring player management, table creation, and automatic score + calculation with ranking. + . + Features: + - Add and manage players + - Create and edit tournament tables + - Automatic score calculation with ranking + - Dark modern UI with Segoe UI fonts + - Lightweight and fast diff --git a/ronrunner_1.0~beta1-1/DEBIAN/copyright b/ronrunner_1.0~beta1-1/DEBIAN/copyright new file mode 100644 index 0000000..8fd88ca --- /dev/null +++ b/ronrunner_1.0~beta1-1/DEBIAN/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ronrunner +Upstream-Contact: Didictateur decosse.adrien@cosmoris.fr +Source: https://github.com/Didictateur/RonRunner + +Files: * +Copyright: 2025 Didictateur +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/ronrunner_1.0~beta1-1/DEBIAN/rules b/ronrunner_1.0~beta1-1/DEBIAN/rules new file mode 100644 index 0000000..2d33f6a --- /dev/null +++ b/ronrunner_1.0~beta1-1/DEBIAN/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@