Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

Update PyApp Installers (#615)

philipqueen6e133494bcde
diff --git a/.github/workflows/linux_installer.yml b/.github/workflows/linux_installer.yml
index ad100ac7..da701ce8 100644
--- a/.github/workflows/linux_installer.yml
+++ b/.github/workflows/linux_installer.yml
@@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: System Info
run: |
uname -a || true
@@ -36,24 +36,26 @@ jobs:
sed '/opencv-python/d' requirements.txt > tmp && mv tmp requirements.txt
- name: Download PyApp
run: |
- curl -L -o pyapp.zip "https://github.com/ofek/pyapp/releases/download/v0.12.0/source.zip"
+ curl -L -o pyapp.zip "https://github.com/ofek/pyapp/releases/download/v0.22.0/source.zip"
- name: Unzip PyApp
run: |
unzip pyapp.zip
- name: Create Linux Installer
run: |
- cd ${{ github.workspace }}/pyapp-v0.12.0
+ cd ${{ github.workspace }}/pyapp-v0.22.0
export PYAPP_PROJECT_NAME=freemocap
export PYAPP_PROJECT_VERSION=v1.2.2
+ export PYAPP_PYTHON_VERSION=3.11
export PYAPP_PROJECT_DEPENDENCY_FILE=${{ github.workspace }}/requirements.txt
export PYAPP_EXEC_SCRIPT=${{ github.workspace }}/freemocap/__main__.py
export PYAPP_PIP_EXTRA_ARGS=--no-deps
+ export PYAPP_EXPOSE_ALL_COMMANDS=true
cargo build --release
cargo install pyapp --force --root ${{ github.workspace }}
cd ${{ github.workspace }}
mv ${{ github.workspace }}/bin/pyapp freemocap_app && chmod +x freemocap_app
tar -czvf freemocap_app.tar.gz freemocap_app
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
- name: freemocap
+ name: freemocap_linux_app
path: freemocap_app.tar.gz
diff --git a/.github/workflows/mac_installer.yml b/.github/workflows/mac_installer.yml
index cb589643..fba1dcd1 100644
--- a/.github/workflows/mac_installer.yml
+++ b/.github/workflows/mac_installer.yml
@@ -7,9 +7,9 @@ on:
jobs:
build:
- runs-on: macos-11
+ runs-on: macos-12
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: System Info
run: |
uname -a || true
@@ -35,18 +35,20 @@ jobs:
sed '/opencv-python/d' requirements.txt > tmp && mv tmp requirements.txt
- name: Download PyApp
run: |
- curl -L -o pyapp.zip "https://github.com/ofek/pyapp/releases/download/v0.12.0/source.zip"
+ curl -L -o pyapp.zip "https://github.com/ofek/pyapp/releases/download/v0.22.0/source.zip"
- name: Unzip PyApp
run: |
unzip pyapp.zip
- name: Create Mac Installer
run: |
- cd ${{ github.workspace }}/pyapp-v0.12.0
+ cd ${{ github.workspace }}/pyapp-v0.22.0
export PYAPP_PROJECT_NAME=freemocap
export PYAPP_PROJECT_VERSION=v1.2.2
+ export PYAPP_PYTHON_VERSION=3.11
export PYAPP_PROJECT_DEPENDENCY_FILE=${{ github.workspace }}/requirements.txt
export PYAPP_EXEC_SCRIPT=${{ github.workspace }}/freemocap/__main__.py
export PYAPP_PIP_EXTRA_ARGS=--no-deps
+ export PYAPP_EXPOSE_ALL_COMMANDS=true
cargo build --release
cargo install pyapp --force --root ${{ github.workspace }}
cd ${{ github.workspace }}
@@ -60,7 +62,7 @@ jobs:
cp ${{ github.workspace }}/freemocap/assets/mac_app_files/freemocap.icns ${{ github.workspace }}/freemocap.app/Contents/Resources
cp ${{ github.workspace }}/freemocap/assets/mac_app_files/Info.plist ${{ github.workspace }}/freemocap.app/Contents
tar -czvf freemocap.tar.gz freemocap.app
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
- name: freemocap
+ name: freemocap_mac_app
path: freemocap.tar.gz
\ No newline at end of file
diff --git a/.github/workflows/windows_installer.yml b/.github/workflows/windows_installer.yml
index f289a350..801835ab 100644
--- a/.github/workflows/windows_installer.yml
+++ b/.github/workflows/windows_installer.yml
@@ -9,7 +9,7 @@ jobs:
build:
runs-on: windows-2019
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: System Info
run: |
systeminfo || true
@@ -35,7 +35,7 @@ jobs:
shell: bash
- name: Download PyApp
run: |
- curl -L -o pyapp.zip "https://github.com/ofek/pyapp/releases/download/v0.12.0/source.zip"
+ curl -L -o pyapp.zip "https://github.com/ofek/pyapp/releases/download/v0.22.0/source.zip"
- name: Unzip PyApp
run: |
unzip pyapp.zip
@@ -47,12 +47,14 @@ jobs:
- name: Create Windows Installer
run: |
WORKSPACE=$(cygpath -u "${{ github.workspace}}")
- cd $WORKSPACE/pyapp-v0.12.0
+ cd $WORKSPACE/pyapp-v0.22.0
export PYAPP_PROJECT_NAME=freemocap
export PYAPP_PROJECT_VERSION=v1.2.2
+ export PYAPP_PYTHON_VERSION=3.11
export PYAPP_PROJECT_DEPENDENCY_FILE=$WORKSPACE/requirements.txt
export PYAPP_EXEC_SCRIPT=$WORKSPACE/freemocap/__main__.py
export PYAPP_PIP_EXTRA_ARGS=--no-deps
+ export PYAPP_EXPOSE_ALL_COMMANDS=true
cargo build --release
cargo install pyapp --force --root $WORKSPACE
cd $WORKSPACE
@@ -64,7 +66,7 @@ jobs:
- name: Set Executable Icon
run: |
rcedit "freemocap_app.exe" --set-icon "${{ github.workspace }}/freemocap/assets/logo/freemocap_skelly_logo.ico"
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
- name: freemocap
+ name: freemocap_windows_exe
path: freemocap_app.exe
\ No newline at end of file