diff options
author | Micah Lee <micah@micahflee.com> | 2022-10-09 08:33:43 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2022-10-09 08:33:43 -0700 |
commit | 7918e80b4b106383825c138fd00409862a7b9692 (patch) | |
tree | 2efcd05fb325fc5625265ef47ef386edf80b22bc /snap | |
parent | b80b476a1240169ff078169c2b185423bdf2b127 (diff) | |
download | onionshare-7918e80b4b106383825c138fd00409862a7b9692.tar.gz onionshare-7918e80b4b106383825c138fd00409862a7b9692.zip |
Snapcraft: Manually copy build folders into install
Diffstat (limited to 'snap')
-rw-r--r-- | snap/snapcraft.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 7ad8e7af..2680f772 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -166,6 +166,15 @@ parts: deactivate sed -i 's|'$SNAPCRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $SNAPCRAFT_PART_INSTALL/bin/onionshare sed -i 's|'$SNAPCRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $SNAPCRAFT_PART_INSTALL/bin/onionshare-cli + # for some reason, snapcraft.io's build system isn't copying onionshare and onionshare_cli folders into install + if [[] ! -d "$SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare" ]]; do + ls -l . + cp -r -n . $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare + fi + if [[] ! -d "$SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare_cli" ]]; do + ls -l ../../onionshare-cli/build + cp -r -n ../../onionshare-cli/build $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare_cli + fi after: [onionshare-cli] tor: |