forked from Nexus/nexus
make macos builder build app from nix
This commit is contained in:
parent
afd6168535
commit
60968f5f3e
2 changed files with 4 additions and 6 deletions
8
.github/workflows/macos.yml
vendored
8
.github/workflows/macos.yml
vendored
|
|
@ -13,8 +13,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Lix GHA Installer Action
|
- name: Lix GHA Installer Action
|
||||||
uses: samueldr/lix-gha-installer-action@v2026-02-22
|
uses: samueldr/lix-gha-installer-action@v2026-02-22
|
||||||
|
|
@ -22,10 +20,10 @@ jobs:
|
||||||
extra_nix_config: experimental-features = nix-command flakes flake-self-attrs
|
extra_nix_config: experimental-features = nix-command flakes flake-self-attrs
|
||||||
|
|
||||||
- name: Build app
|
- name: Build app
|
||||||
run: nix develop --command bash -c "flutter pub get && dart scripts/generate.dart && flutter pub run build_runner build && flutter build macos --release"
|
run: nix build .#default
|
||||||
|
|
||||||
- name: Upload installer artifact
|
- name: Upload installer artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: App
|
name: flatpak-${{ matrix.arch }}
|
||||||
path: build/macos/Build/Products/Release/Nexus.app
|
path: result/Nexus.app
|
||||||
|
|
@ -44,7 +44,7 @@ flutter.buildFlutterApplication {
|
||||||
meta = {
|
meta = {
|
||||||
description = "A simple and user-friendly Matrix client";
|
description = "A simple and user-friendly Matrix client";
|
||||||
mainProgram = "nexus";
|
mainProgram = "nexus";
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.unix;
|
||||||
maintainers = with lib.maintainers; [ quadradical ];
|
maintainers = with lib.maintainers; [ quadradical ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue