Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeshi committed Apr 4, 2022
2 parents c1a1083 + 21ecb2c commit 6e4fbd4
Show file tree
Hide file tree
Showing 6 changed files with 860 additions and 35 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-binary.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: build-binary

on:
release:
types: [published]
push:
tags:
- "v*.*.*"

jobs:
build-windows:
Expand All @@ -24,7 +25,7 @@ jobs:
from pathlib import Path
version = [l for l in Path('pyproject.toml').read_text().splitlines() if 'version' in l][0].split(' ')[-1].strip('\"')
f = Path('src/ntfsdump/models/MetaData.py')
text = f.read_text().replace("version(name)", f"\'{version}\'")
text = f.read_text().replace("get_version(name)", f"\'{version}\'")
f.write_text(text)
shell: python

Expand All @@ -41,13 +42,12 @@ jobs:
- name: build
run: |
pip install pyinstaller
pyinstaller --onefile -p . -p src -p src/ntfsdump -p ./.venv/Lib/ -p ./.venv/Lib/site-packages -n ntfsdump-windows ./.venv/Scripts/ntfsdump
pyinstaller --onefile -p . -p src -p src/ntfsdump -p ./.venv/Lib/ -p ./.venv/Lib/site-packages -n ntfsdump ./.venv/Scripts/ntfsdump
- name: verify
run: dist/ntfsdump-windows.exe -h
run: dist/ntfsdump.exe -h

- name: upload
uses: actions/upload-artifact@v3
uses: softprops/action-gh-release@v1
with:
name: ntfsdump-windows
path: dist/ntfsdump-windows.exe
files: dist/ntfsdump.exe
Loading

0 comments on commit 6e4fbd4

Please sign in to comment.