Skip to content

Commit

Permalink
more nix for tauri release
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Jan 23, 2024
1 parent e5448b4 commit 8cafcab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/tauri-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,21 @@ jobs:
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- run: nix run .#rainix-sol-prelude
- run: nix run .#rainix-rs-prelude

- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: install rust
run: nix profile install .#tauri-release-env

# - name: install Rust stable
# uses: dtolnay/rust-toolchain@stable

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- run: nix run .#rainix-sol-prelude
- run: nix run .#rainix-rs-prelude

- name: install frontend dependencies
run: yarn install # change this to npm or pnpm depending on which one you use
run: npm install
working-directory: ./tauri-app

- uses: tauri-apps/tauri-action@v0
env:
Expand Down
7 changes: 4 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Flake for development workflows.";

inputs = {
rainix.url = "github:rainprotocol/rainix";
rainix.url = "github:rainprotocol/rainix/9fee1bef10be721d149b202da7378365540a3578";
flake-utils.url = "github:numtide/flake-utils";
};

Expand All @@ -12,10 +12,8 @@
pkgs = rainix.pkgs.${system};
in {
packages = rec {
tauri-release-env = pkgs.buildEnv {
name = "Tauri release environment";
paths = rainix.rust-build-inputs.${system};
};

tauri-release-env = rainix.tauri-release-env.${system};

ob-tauri-prelude = rainix.mkTask.${system} {
name = "ob-tauri-prelude";
Expand Down

0 comments on commit 8cafcab

Please sign in to comment.