JackMcKew / pyinstaller-action-windows

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

Confused about how to setup multiple .spec file #13

Closed Sedatyf closed 3 years ago

Sedatyf commented 3 years ago

Hi,

First of all, thank you to bring pyInstaller in GitHub Actions. It's a great idea! I read the documentation and there is a part where it says

The source code directory should have your .spec file that PyInstaller generates. If you don't have one, you'll need to run PyInstaller once locally to generate it. Also if you have another program .spec file you can set specific pyinstaller .spec file by spec:

But I'm not too sure how to setup it. Here is my yaml file

name: Package Application with Pyinstaller for Windows

on:
  push:
    branches: [ gui ]
  pull_request:
    branches: [ gui ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Package Application
      uses: JackMcKew/pyinstaller-action-windows@main
      with:
        path: src
        spec: src/main_windows.spec

    - uses: actions/upload-artifact@v2
      with:
        name: PCC-Win
        path: src/dist/main

And my project folder tree is like this

project/
    src/
        img/
        package/
        main_windows.spec

But when GitHub Actions tries to build this project, it returns me a spec "src/main_windows.spec" not found Am I missing something?

Thanks in advance, Sedatyf

JackMcKew commented 3 years ago

If this is your repo https://github.com/Sedatyf/Pokemon_capture_chance/actions/workflows/pyInstallerWindows.yml

It seems as if they are working?

Sedatyf commented 3 years ago

Yeah indeed. I thought I had to give to different .spec file, one from a local export on Windows, and another one from a local export on Linux. But the same one from Windows works fine with both export. Sorry for the bother