Skip to content

Commit

Permalink
Merge pull request #14 from jakeshirey/feature/gh-release
Browse files Browse the repository at this point in the history
draft build file
  • Loading branch information
jakeshirey committed Nov 18, 2023
2 parents d84349c + 267bab2 commit d7bd0d6
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,51 @@
name: Build Workflow

on:
push:
branches: main

jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Run PyInstaller
run: |
python -m PyInstaller mainGUI.spec
- uses: actions/upload-artifact@v3
with:
name: DeepLabCut-Display
path: dist/DeepLabCut-Display.exe

- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.head_commit.message }}
release_name: ${{ github.event.head_commit.message }}
overwrite: true
body: |
Release v1.0.0
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: dist/DeepLabCut-Display.exe
asset_name: DeepLabCut-Display.exe
asset_content_type: application/zip
4 changes: 3 additions & 1 deletion .gitignore
@@ -1,4 +1,6 @@
vrt/
*.pyc
*.csv
devnotes.txt
devnotes.txt
build/
dist/
Binary file added horse.ico
Binary file not shown.
39 changes: 39 additions & 0 deletions mainGUI.spec
@@ -0,0 +1,39 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['mainGUI.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='DeepLabCut-Display',
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,
runtime_tmpdir=None,
console=True , icon='horse.ico'
)

0 comments on commit d7bd0d6

Please sign in to comment.