ananthakumaran / paisa

Paisa – Personal Finance Manager. https://paisa.fyi demo: https://demo.paisa.fyi
https://paisa.fyi
GNU Affero General Public License v3.0
2.4k stars 124 forks source link

Failed to build desktop application #255

Closed frisodubach closed 2 months ago

frisodubach commented 2 months ago

Describe your Environment OS: NixOS 24.05 Paisa Version: 0.6.6 App Variant: Desktop

Describe the bug Failure to build desktop application using the nix dev shell on NixOS 24.05.

To Reproduce Steps to reproduce the behavior:

  1. Clone repo
  2. Enter dev-shell with nix develop
  3. Run wails build
  4. Receive error:

    
    # Building target: linux/amd64
    
    • Generating bindings:   ERROR   
          ../web/web.go:7:12: pattern all:static: no matching files found
    
          exit status 1
    
    ERROR   
          ../web/web.go:7:12: pattern all:static: no matching files found
    
          exit status 1

I tried searching for any file matching `static`, and noticed there is a entry in the `.gitignore`: `web/static`. 
Is there a step I'm possibly missing regarding the build process? 
There is no documentation on how the application should be built, so I'm not too sure on what to do. 
I was trying to build the desktop app such that I could see if I can add it to the nix-flake, but I'm a bit lost here.

**Expected behavior**
A successful build of the desktop application using wails.
ananthakumaran commented 2 months ago

@frisodubach look at the Makefile, I think you should start with make install. It's failing because javascript/html resources are missing which are generated by npm run build.

I will move this to discussion, as it's not a bug rather a question.