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:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Lix GHA Installer Action
|
||||
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
|
||||
|
||||
- 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
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: App
|
||||
path: build/macos/Build/Products/Release/Nexus.app
|
||||
name: flatpak-${{ matrix.arch }}
|
||||
path: result/Nexus.app
|
||||
|
|
@ -44,7 +44,7 @@ flutter.buildFlutterApplication {
|
|||
meta = {
|
||||
description = "A simple and user-friendly Matrix client";
|
||||
mainProgram = "nexus";
|
||||
platforms = lib.platforms.linux;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ quadradical ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue