diff --git a/.github/workflows/reuseable_build_package.yaml b/.github/workflows/reuseable_build_package.yaml index 66b62426..4abf40bf 100644 --- a/.github/workflows/reuseable_build_package.yaml +++ b/.github/workflows/reuseable_build_package.yaml @@ -53,8 +53,8 @@ jobs: - name: Build Token Plugin deployment package run: | mkdir -p /tmp/build-output - fpm --input-type dir --output-type deb --name sovtoken --version $(./updateVersion.py --getVersion) --depends "indy-node(=${{ steps.node-version.outputs.nodeVersion }})" --verbose --no-python-dependencies --force sovtoken/ - fpm --input-type dir --output-type deb --name sovtokenfees --version $(./updateVersion.py --getVersion) --depends "indy-node(=${{ steps.node-version.outputs.nodeVersion }})" --verbose --no-python-dependencies --force sovtokenfees/ + fpm --input-type dir --output-type deb --name sovtoken --architecture amd64 --maintainer "Sovrin" --no-python-fix-name --version $(./updateVersion.py --getVersion) --depends "indy-node(=${{ steps.node-version.outputs.nodeVersion }})" --verbose --no-python-dependencies --after-install ./devops/build-scripts/focal/sovtoken/postinst --before-remove ./devops/build-scripts/focal/sovtoken/prerm --exclude "*.pyo" --exclude "*.pyc" --no-python-fix-dependencies --python-bin "/usr/bin/python3" --force sovtoken/ + fpm --input-type dir --output-type deb --name sovtokenfees --architecture amd64 --maintainer "Sovrin" --no-python-fix-name --version $(./updateVersion.py --getVersion) --depends "indy-node(=${{ steps.node-version.outputs.nodeVersion }})" --verbose --no-python-dependencies --after-install ./devops/build-scripts/focal/sovtokenfees/postinst --before-remove ./devops/build-scripts/focal/sovtokenfees/prerm --exclude "*.pyo" --exclude "*.pyc" --no-python-fix-dependencies --python-bin "/usr/bin/python3" --force sovtokenfees/ mv ./*.deb /tmp/build-output - name: Upload sovtoken-deb uses: actions/upload-artifact@v3 diff --git a/devops/build-scripts/focal/sovtoken/postinst b/devops/build-scripts/focal/sovtoken/postinst index 670dadd7..7424a72e 100644 --- a/devops/build-scripts/focal/sovtoken/postinst +++ b/devops/build-scripts/focal/sovtoken/postinst @@ -7,7 +7,7 @@ fi # End automatically added section INDY_CONFIG_PATH="/etc/indy/indy_config.py" -PLUGINS_SOURCE_PATH="/usr/local/lib/python3.8/dist-packages/sovtoken" +PLUGINS_SOURCE_PATH=$(python3 -c "import sovtoken as _; print(_.__path__[0])") add_plugin_if_missing() { diff --git a/devops/build-scripts/focal/sovtokenfees/postinst b/devops/build-scripts/focal/sovtokenfees/postinst index 1a806a91..e46c5f6c 100644 --- a/devops/build-scripts/focal/sovtokenfees/postinst +++ b/devops/build-scripts/focal/sovtokenfees/postinst @@ -7,7 +7,7 @@ fi # End automatically added section INDY_CONFIG_PATH="/etc/indy/indy_config.py" -PLUGINS_SOURCE_PATH="/usr/local/lib/python3.8/dist-packages/sovtokenfees" +PLUGINS_SOURCE_PATH=$(python3 -c "import sovtokenfees as _; print(_.__path__[0])") add_plugin_if_missing() {