diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index ec29d732..586dee45 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -30,13 +30,13 @@ jobs: uses: actions/cache@v1 with: path: ~\AppData\Local\pip\Cache - key: ${{ runner.os }}-pip-${{ steps.get_version.outputs.VERSION }} + key: ${{ runner.os }}-pip-${{ hashFiles('package/requirements-windows.txt') }} restore-keys: ${{ runner.os }}-pip- - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install pyopenssl pycryptodomex pywin32 pyinstaller + pip install -r package/requirements-windows.txt - name: Build Package run: | @@ -89,13 +89,13 @@ jobs: uses: actions/cache@v1 with: path: ~/Library/Caches/pip - key: ${{ runner.os }}-pip-${{ steps.get_version.outputs.VERSION }} + key: ${{ runner.os }}-pip-${{ hashFiles('package/requirements-macos.txt') }} restore-keys: ${{ runner.os }}-pip- - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install pyopenssl pycryptodomex pyinstaller pyobjc + pip install -r package/requirements-macos.txt - name: Build Package run: | diff --git a/package/requirements-macos.txt b/package/requirements-macos.txt new file mode 100644 index 00000000..f938a3ec --- /dev/null +++ b/package/requirements-macos.txt @@ -0,0 +1,4 @@ +pyinstaller +pyopenssl +pycryptodomex +pyobjc \ No newline at end of file diff --git a/package/requirements-windows.txt b/package/requirements-windows.txt new file mode 100644 index 00000000..1a9aa4fb --- /dev/null +++ b/package/requirements-windows.txt @@ -0,0 +1,4 @@ +pyinstaller +pyopenssl +pycryptodomex +pywin32 \ No newline at end of file