Skip to content

Commit

Permalink
trysnap
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Jul 19, 2024
1 parent 952ddd5 commit 8aafd99
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ native_tools/
prime/
stage/
.snapcraft/
parts/

# User-specific files
*.rsuser
Expand Down
Empty file modified buildsnap.sh
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -49,4 +49,3 @@ parts:
- libice6
- libsm6
- liblttng-ust0
- libutil-linux
2 changes: 1 addition & 1 deletion trysnap.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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 '<Version>\K[^<]+' ./build/props/Base.props)_amd64.snap
snapFile=oneware_$(grep -oP '<StudioVersion>\K[^<]+' ./build/props/Base.props)_amd64.snap
sudo snap install --dangerous --classic $snapFile
rm ./$snapFile
oneware

0 comments on commit 8aafd99

Please sign in to comment.