From 8aafd9936e29c780aaa5c44c8aeed540fb68f8be Mon Sep 17 00:00:00 2001 From: Hendrik Mennen Date: Fri, 19 Jul 2024 13:51:01 +0200 Subject: [PATCH] trysnap --- .gitignore | 1 + buildsnap.sh | 0 snap/snapcraft.yaml | 3 +-- trysnap.sh | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 buildsnap.sh mode change 100644 => 100755 trysnap.sh diff --git a/.gitignore b/.gitignore index fb4727e5..0c9db0b4 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ native_tools/ prime/ stage/ .snapcraft/ +parts/ # User-specific files *.rsuser diff --git a/buildsnap.sh b/buildsnap.sh old mode 100644 new mode 100755 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 43482af7..febf08bd 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -29,7 +29,7 @@ parts: rm packages-microsoft-prod.deb sudo apt-get update; sudo apt-get install -y apt-transport-https && sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0 cd studio/OneWare.Studio.Desktop - dotnet publish -f net8.0 -r linux-x64 -c Release --self-contained true -o $SNAPCRAFT_PART_INSTALL + dotnet publish -f net8.0 -r linux-x64 -c Release -o $SNAPCRAFT_PART_INSTALL echo 'updating rpath...' current_rpath="$(patchelf --print-rpath $SNAPCRAFT_PART_INSTALL/OneWareStudio)" append_rpath='$ORIGIN:$ORIGIN/usr/lib/x86_64-linux-gnu' @@ -49,4 +49,3 @@ parts: - libice6 - libsm6 - liblttng-ust0 - - libutil-linux diff --git a/trysnap.sh b/trysnap.sh old mode 100644 new mode 100755 index c0a531b7..23bf418d --- a/trysnap.sh +++ b/trysnap.sh @@ -1,7 +1,7 @@ # This will remove oneware, build a new oneware snap, install and start it sudo snap remove oneware ./buildsnap.sh -snapFile=oneware_$(grep -oP '\K[^<]+' ./build/props/Base.props)_amd64.snap +snapFile=oneware_$(grep -oP '\K[^<]+' ./build/props/Base.props)_amd64.snap sudo snap install --dangerous --classic $snapFile rm ./$snapFile oneware \ No newline at end of file