Skip to content

Commit

Permalink
snapcraft ready
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Nov 20, 2024
1 parent 95f6807 commit 4710b15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildsnap.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker run --rm -it --privileged -v $PWD:/data -w /data diddledani/snapcraft:core22
docker run --rm -it --privileged -v $PWD:/data -w /data diddledani/snapcraft:core24
8 changes: 6 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4710b15

Please sign in to comment.