From 4710b158447214e5726bae40e9f5a8a206bd3afb Mon Sep 17 00:00:00 2001 From: Hendrik Mennen Date: Tue, 19 Nov 2024 22:35:21 -0500 Subject: [PATCH] snapcraft ready --- buildsnap.sh | 2 +- snap/snapcraft.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/buildsnap.sh b/buildsnap.sh index a8f453ca..da219b66 100755 --- a/buildsnap.sh +++ b/buildsnap.sh @@ -1 +1 @@ -docker run --rm -it --privileged -v $PWD:/data -w /data diddledani/snapcraft:core22 \ No newline at end of file +docker run --rm -it --privileged -v $PWD:/data -w /data diddledani/snapcraft:core24 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 1b74d39b..8862f10a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -12,20 +12,24 @@ apps: command: ./OneWareStudio common-id: com.one_ware.OneWare desktop: ./com.one_ware.OneWare.desktop - + parts: oneware: plugin: dump source: . parse-info: [studio/OneWare.Studio.Desktop/com.one_ware.OneWare.metainfo.xml] + build-packages: + - libicu74 override-build: | export TZ=Europe/Berlin ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone curl -sSL https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh chmod +x ./dotnet-install.sh - ./dotnet-install.sh --version latest + ./dotnet-install.sh --channel 9.0 export DOTNET_ROOT=$HOME/.dotnet export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools + export DOTNET_NOLOGO=1 + export DOTNET_CLI_TELEMETRY_OPTOUT=1 cd studio/OneWare.Studio.Desktop dotnet publish -r linux-x64 -c Release -o $SNAPCRAFT_PART_INSTALL chmod +x $SNAPCRAFT_PART_INSTALL/OneWareStudio