@@ -21,7 +21,7 @@ description: |
2121
2222 snap services lemonade-server
2323
24- The desktop client connects to lemonade-server on localhost port 8000 .
24+ The desktop client connects to lemonade-server on localhost port 13305 .
2525 Ensure the server is running before launching the desktop client.
2626
2727 **Features**
5555 - node/22/stable
5656 build-packages :
5757 - git
58+ - curl
5859 override-pull : |
5960 craftctl default
6061 VERSION=$(craftctl get version)
@@ -67,12 +68,16 @@ parts:
6768 # workaround for build.snapcraft.io builds
6869 # https://bugs.launchpad.net/bugs/1886861
6970 if [ -n "$http_proxy" ]; then
70- export ELECTRON_GET_USE_PROXY=1
7171 export GLOBAL_AGENT_HTTP_PROXY="${http_proxy}"
7272 export GLOBAL_AGENT_HTTPS_PROXY="${http_proxy}"
7373 fi
7474
75- export PATH="/snap/node/current/bin:$PATH"
75+ # Install Rust via rustup
76+ export RUSTUP_HOME="$CRAFT_PART_BUILD/.rustup"
77+ export CARGO_HOME="$CRAFT_PART_BUILD/.cargo"
78+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
79+ export PATH="$CARGO_HOME/bin:/snap/node/current/bin:$PATH"
80+
7681 export npm_config_loglevel="error"
7782 export npm_config_progress="false"
7883 export npm_config_fund="false"
@@ -82,16 +87,15 @@ parts:
8287
8388 cd $CRAFT_PART_BUILD/src/app
8489 npm install
85- npm run build
86- cp -rp dist-app $CRAFT_PART_INSTALL/
90+ npx tauri build --no-bundle
91+
92+ mkdir -p $CRAFT_PART_INSTALL/bin
93+ cp src-tauri/target/release/lemonade-app $CRAFT_PART_INSTALL/bin/
8794 cp -rp assets $CRAFT_PART_INSTALL/
8895 prime :
8996 - -assets/favicon.ico
9097 - assets
91- - dist-app
92- - -*/chrome-sandbox
93- - -*/resources/app.asar.unpacked/node_modules/sharp/vendor/lib
94- - -*/resources/app.asar.unpacked/node_modules/sharp/vendor/include
98+ - bin/lemonade-app
9599
96100 scripts :
97101 plugin : dump
@@ -143,11 +147,15 @@ apps:
143147 - audio-record
144148 - home
145149 - network
150+ - network-bind
151+ - network-status
146152 - shmem
147153 - browser-support
148154 - hardware-observe
155+ - system-observe
149156 environment :
150157 GTK_USE_PORTAL : 1
151158 TMPDIR : $XDG_RUNTIME_DIR
152159 HOME : $SNAP_USER_COMMON
153160 AMDGPU_ASIC_ID_TABLE_PATH : $SNAP/gpu-2404/libdrm/amdgpu.ids
161+ WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS : 1
0 commit comments