JackMcKew / pyinstaller-action-windows

Github Action for building executables with Pyinstaller
MIT License
168 stars 67 forks source link

setting path to root not working #38

Closed TomW1605 closed 5 months ago

TomW1605 commented 1 year ago

i tried path: . as recomended in #8 and also path: / and path: but i keep getting OSError: [WinError 123] Invalid name: '/tmp\\*'

JackMcKew commented 11 months ago

Hi Tom,

Would you mind providing a reproducible example please

TomW1605 commented 11 months ago

https://github.com/TomW1605/Fusion360_Slicer_Selector_test

JackMcKew commented 11 months ago

Please make sure to include a .spec file which instructs Pyinstaller how to package your application

If you provide a .spec file in the path that you set (ie, .) then the action can run as expected

Let me know if any dramas, check the README for more information about this

TomW1605 commented 11 months ago

thanks i dont know how i missed that. i try it on the weekend when i have time

EnzoDeg40 commented 11 months ago

When I set path to . i have error OSError: [WinError 123] Invalid name: 'Z:\\tmp\\*' (name: Package Application) Note : I do have a file called space.spec in my project

  - name: Package Application
      uses: JackMcKew/pyinstaller-action-windows@python3-10-pyinstaller-5-3
      with:
        path: .

    - uses: actions/upload-artifact@v2
      with:
        name: space
        path: src/dist/windows
JackMcKew commented 11 months ago

@EnzoDeg40 Can you please try including the suffix (.spec) to your .yml file please :)

veryredpp commented 10 months ago

@EnzoDeg40 Can you please try including the suffix (.spec) to your .yml file please :)

I tried that but I'm getting another error: /entrypoint.sh: line 42: cd: .spec: No such file or directory

here is my repo https://github.com/veryredpp/number-system-stuff

TomW1605 commented 10 months ago

sorry for the delay on this, i added the .spec file but now i get other errors TypeError: __init__() got an unexpected keyword argument 'hooksconfig'. should i make a new issue for this one?

https://github.com/TomW1605/Fusion360_Slicer_Selector_test/actions/runs/6624490243/job/17993579038

JackMcKew commented 10 months ago

Check this already raised issue :)

https://github.com/JackMcKew/pyinstaller-action-windows/issues/16

JackMcKew commented 5 months ago

Closing due to stale