tauri-docs icon indicating copy to clipboard operation
tauri-docs copied to clipboard

Adding snap package to linux build guide

Open fetzsav opened this issue 1 year ago • 6 comments

This is the docs for https://github.com/tauri-apps/tauri/pull/6532

fetzsav avatar Apr 02 '23 21:04 fetzsav

🚀 Deployed on https://dev1195--tauri.netlify.app

github-actions[bot] avatar Apr 02 '23 21:04 github-actions[bot]

and we'll get these merged in if not.

Don't forget that this hasn't landed in Tauri itself yet

FabianLars avatar Sep 02 '23 10:09 FabianLars

Don't forget that this hasn't landed in Tauri itself yet

Ah yeah, good point. I need to figure out a way to track what's been merged upstream more easily (or maybe I just need to be more diligent with checking the PR description ;) )

lorenzolewis avatar Sep 02 '23 12:09 lorenzolewis

Deploy Preview for tauri ready!

Name Link
Latest commit a8f0bcb4195057e4b63724c602620abe6977d0c8
Latest deploy log https://app.netlify.com/sites/tauri/deploys/64f3968c7a49110008f57851
Deploy Preview https://deploy-preview-1195--tauri.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Sep 02 '23 20:09 netlify[bot]

Don't forget that this hasn't landed in Tauri itself yet

Ah yeah, good point. I need to figure out a way to track what's been merged upstream more easily (or maybe I just need to be more diligent with checking the PR description ;) )

Hey, sorry for getting back to you late. But yes, this has not landed in Tauri yet.

Here is the PR for support in Tauri: https://github.com/tauri-apps/tauri/pull/6532

I'll take a look at it after work today and see what else needs to be done before it's ready for merging!

fetzsav avatar Sep 12 '23 18:09 fetzsav

This is an example of how to build a tauri v2 app from source.

name: jrosarybibleapp
base: core22
adopt-info: metapart
version: '2.0.4'
summary: Read the Bible and other Christian texts. # 79 char long summary
description: |
  Study the Bible, and read Christianity related works. This projects goal is to promote spiritual health, and to allow each person to study the bible and come to their own conclusion about their faith.

grade: stable
confinement: strict

apps:
  rosary:
    command: bin/rosary
    desktop: usr/share/applications/rosary.desktop

package-repositories:
  - type: apt
    components: [main]
    suites: [noble]
    key-id: 78E1918602959B9C59103100F1831DDAFC42E99D
    url: http://ppa.launchpad.net/snappy-dev/snapcraft-daily/ubuntu

parts:
  prep:
    plugin: dump
    build-snaps:
      - node/20/stable
      - rustup/latest/stable
    build-packages:
      - libwebkit2gtk-4.1-dev
      - build-essential 
      - curl 
      - wget 
      - file 
      - libxdo-dev 
      - libssl-dev 
      - libayatana-appindicator3-dev 
      - librsvg2-dev
      - dpkg
    stage-packages:
      - libwebkit2gtk-4.1-0
      - libglu1-mesa
      - libsoup-3.0-0
      - freeglut3
    source: .
    #  - on amd64 to amd64: https://github.com/RoseBlume/Rosary/releases/download/v2.0.4/Rosary_2.0.4_amd64.deb
    #  - on arm64 to arm64: https://github.com/RoseBlume/Rosary/releases/download/v2.0.4/Rosary_2.0.4_arm64.deb
    #  - on armhf to armhf: https://github.com/RoseBlume/Rosary/releases/download/v2.0.4/Rosary_2.0.4_armhf.deb
    #source-type: deb
    override-pull: |
      set -eu
      craftctl default
      rustup default nightly
      npm install
      npm run tauri icon Bible3.png
      npm run tauri build -- --bundles deb
      dpkg -x src-tauri/target/release/bundle/deb/*.deb here
      sed -i -e "s|Icon=rosary|Icon=/usr/share/icons/hicolor/32x32/apps/rosary.png|g" here/usr/share/applications/rosary.desktop
      cp -r here/* .
    organize:
      usr/bin/rosary: bin/rosary

RoseBlume avatar Jun 12 '24 14:06 RoseBlume