Fix unix builds not having their executable bit set in ci, make windows build script perform a clean build every time
This commit is contained in:
parent
022a0520fa
commit
0443549277
2 changed files with 8 additions and 1 deletions
6
.github/workflows/create-binaries.yaml
vendored
6
.github/workflows/create-binaries.yaml
vendored
|
|
@ -49,6 +49,12 @@ jobs:
|
|||
mkdir ${{ env.artifact-path }}
|
||||
mv ${{ env.dist-folder-path }} ${{ env.artifact-path }}
|
||||
|
||||
# Sometimes the executable bit doesn't get set for Unix builds for some reason
|
||||
- name: Set executable bit
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
run: chmod +x ${{ env.artifact-path }}/*
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ pip install wheel
|
|||
pip install onnxruntime opencv-python==4.5.4.60 pillow numpy pyinstaller
|
||||
|
||||
echo "Running pyinstaller"
|
||||
pyinstaller facetracker.py --onedir ^
|
||||
pyinstaller facetracker.py --clean ^
|
||||
--onedir ^
|
||||
--add-binary dshowcapture/*.dll;. ^
|
||||
--add-binary escapi/*.dll;. ^
|
||||
--add-binary venv/lib/site-packages/onnxruntime/capi/*.dll;onnxruntime\capi ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue