Skip to content

Commit 76d6c44

Browse files
authored
Merge pull request #437 from pSchlarb/GHARefactoring
postinst and prerm fixes
2 parents 29341a9 + 3f1c928 commit 76d6c44

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/reuseable_build_package.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
- name: Build Token Plugin deployment package
5454
run: |
5555
mkdir -p /tmp/build-output
56-
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/
57-
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/
56+
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/
57+
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/
5858
mv ./*.deb /tmp/build-output
5959
- name: Upload sovtoken-deb
6060
uses: actions/upload-artifact@v3

devops/build-scripts/focal/sovtoken/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fi
77
# End automatically added section
88

99
INDY_CONFIG_PATH="/etc/indy/indy_config.py"
10-
PLUGINS_SOURCE_PATH="/usr/local/lib/python3.8/dist-packages/sovtoken"
10+
PLUGINS_SOURCE_PATH=$(python3 -c "import sovtoken as _; print(_.__path__[0])")
1111

1212
add_plugin_if_missing()
1313
{

devops/build-scripts/focal/sovtokenfees/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fi
77
# End automatically added section
88

99
INDY_CONFIG_PATH="/etc/indy/indy_config.py"
10-
PLUGINS_SOURCE_PATH="/usr/local/lib/python3.8/dist-packages/sovtokenfees"
10+
PLUGINS_SOURCE_PATH=$(python3 -c "import sovtokenfees as _; print(_.__path__[0])")
1111

1212
add_plugin_if_missing()
1313
{

0 commit comments

Comments
 (0)