diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f9e4a3e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Builds Application + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + name: Builds backend + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v19 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Enter Development Shell + run: nix develop + - name: Build Backend + run: make + - name: Install NPM Packages + run: npm install + - name: Build Frontend + run: npm run tauri build diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml deleted file mode 100644 index 6218604..0000000 --- a/.github/workflows/cpp.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: C/C++ CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: make - run: make diff --git a/flake.nix b/flake.nix index cc7638a..3a4a197 100644 --- a/flake.nix +++ b/flake.nix @@ -8,10 +8,7 @@ nixpkgs, }: let system = "x86_64-linux"; - - pkgs = import nixpkgs { - inherit system; - }; + pkgs = import nixpkgs {inherit system;}; crow = pkgs.stdenv.mkDerivation rec { pname = "crow"; @@ -38,19 +35,31 @@ doCheck = false; }; + + packages = with pkgs; [ + # SvelteKit + Tauri + nodejs + cargo + rustc + curl + wget + pkg-config + dbus + openssl_3 + glib + gtk3 + libsoup + webkitgtk + librsvg + + # C/C++ + boost + crow + gnumake + ]; in { devShells.${system}.default = pkgs.mkShell { - buildInputs = with pkgs; [ - nodejs - cargo - rustc - pkg-config - gtk3 - webkitgtk - gnumake - boost - crow - ]; + buildInputs = packages; shellHook = with pkgs; '' export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS; diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 59cadb6..8d079e5 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -29,7 +29,7 @@ "icons/icon.icns", "icons/icon.ico" ], - "identifier": "com.tauri.dev", + "identifier": "com.tauri.dev.library-manager", "longDescription": "", "macOS": { "entitlements": null, @@ -40,7 +40,13 @@ }, "resources": [], "shortDescription": "", - "targets": "all", + "targets": [ + "deb", + "msi", + "app", + "dmg", + "updater" + ], "windows": { "certificateThumbprint": null, "digestAlgorithm": "sha256", diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index ae88a27..ceccaaf 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -1,2 +1,2 @@ -export const prerender = false; +export const prerender = true; export const ssr = false;