Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "pip"
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: binary_creation
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v4
- name: create temp folder
run: mkdir dist
- name: generate license
run: python -m piplicenses
--format=markdown
--output-file dist/bundled-libraries.md
- name: generate license2
run: python -m piplicenses
--with-authors
--with-urls
--with-description
--with-license-file
--no-license-path
--format=json
--output-file dist/open-source-licenses.json
- name: generate license3
run: python -m piplicenses
--with-authors
--with-urls
--with-description
--with-license-file
--no-license-path
--format=plain-vertical
--output-file dist/open-source-licenses.txt
- name: generate exe
uses: JackMcKew/pyinstaller-action-windows@main
with:
spec: RevPi_Commander.spec
path: .
- name: upload files
uses: actions/upload-artifact@v4
with:
name: binaries
path: dist/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MANIFEST
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec


# Installer logs
pip-log.txt
Expand Down
45 changes: 45 additions & 0 deletions RevPi_Commander.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['src\\revpicommander\\__main__.py'],
pathex=[],
binaries=[],
datas=[('dist/bundled-libraries.md', 'revpicommander\\open-source-licenses'), ('dist/open-source-licenses.*', 'revpicommander\\open-source-licenses'), ('src\\revpicommander\\locale', '.\\revpicommander\\locale'), ('data\\revpicommander.ico', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='RevPi Commander',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['data\\revpicommander.ico'],
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='RevPi Commander',
)