Nuitka / Nuitka-Action

Action to build with Nuitka on GitHub in your workflows
MIT License
111 stars 22 forks source link

Missing 'main' option #53

Open zak-45 opened 2 weeks ago

zak-45 commented 2 weeks ago

Hi, I try to build exe file using the multi feature. Doc say need main param, but if I put it I got this warning :

Warning: Unexpected input(s) 'main'.

Here is my action entries:

  - name: Build Executable for ${{runner.os}}
    uses: Nuitka/Nuitka-Action@v1.1
    with:
      nuitka-version: 2.2.3
      script-name: WLEDVideoSync.py
      company-name: zak-45
      file-version: ${{github.event.inputs.mytag}}
      enable-plugins: tk-inter
      disable-console: True
      deployment: true
      windows-icon-from-ico: assets/favicon.ico
      macos-app-icon: assets/favicon.ico
      macos-create-app-bundle: true
      onefile: true
      onefile-tempdir-spec: ./WLEDVideoSync
      output-file: WLEDVideoSync-${{runner.os}}
      include-module: |
        CastAPI
        zeroconf._utils.ipaddress
        zeroconf._handlers.answers
        pygments.formatters.html
        dbm.dumb
      include-data-dir: |
        tmp=tmp
        log=log
        assets=assets
        config=config
        media=media
        nicegui=nicegui
        xtra=xtra
      include-data-files: |
        favicon.ico=favicon.ico
      main: |
        devstats.py
        netstats.py
        sysstats.py

Thanks

kayhayen commented 2 weeks ago

It's using script_name so far and requires that even. I agree not having main and not making that one mandatory is kind of a sin, but if you put your list there, I suppose it's going to work. Can you try that?

zak-45 commented 2 weeks ago

That do the trick. thanks

kayhayen commented 2 weeks ago

I think it shall become unnecessary though. Cannot allow both due to ordering issues for multidist though.