Skip to content

Commit

Permalink
[UPDATE] using binary on AUR
Browse files Browse the repository at this point in the history
  • Loading branch information
mathix420 committed Sep 16, 2023
1 parent 47e2510 commit a3c020d
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 6 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish on PyPi
name: Publish on PyPi and Build binary

on:
release:
Expand All @@ -19,4 +19,24 @@ jobs:
run: make build
- name: Publishing
run: "python3 -m twine upload dist/* -u __token__ -p '${{ secrets.PYPI_TOKEN }}'"


build_bin:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
python3 -m pip install -U pip setuptools wheel twine
pip3 install .
- name: Package Application
uses: JackMcKew/pyinstaller-action-linux@main
with:
path: './'

- uses: actions/upload-artifact@v2
with:
name: 'rofi-notion'
path: ./dist/linux
6 changes: 2 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# Maintainer: Arnaud Gissinger <[email protected]>
pkgname=rofi-notion
pkgname=rofi-notion-bin
pkgver=2.0.3
pkgrel=3
pkgrel=1
pkgdesc="Quickly create new Notion pages for your databases with rofi as GUI."
arch=('any')
url="https://github.com/mathix420/rofi-notion"
license=('MIT')
depends=('python>=3.7' 'python-rofi' 'python-inquirerpy')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=('rofi-notion')
source=("$pkgname-$pkgver.tar.gz::https://github.com/mathix420/rofi-notion/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')
Expand Down
44 changes: 44 additions & 0 deletions rofi-notion.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
['stub.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='rofi-notion',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
2 changes: 2 additions & 0 deletions stub.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from rofi_notion.__main__ import main
main()

0 comments on commit a3c020d

Please sign in to comment.