0h-n0 / flet-action-windows

this github action supports python script based on Flet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flet-Action-Windows

Sample

Features

  • support more recent version python (3.10)
  • support more recent version pyinstaller(5.5.0)

Poetry

If you use poetry as package manager, before using this action, you need to dump requirements.txt with the following command.

$ poetry export --without-hashes -f requirements.txt --output requirements.txt

When you would like to add your package into binary, you need to your package at head of requirementx.txt.

install -e .
...
...
...

Example

Trouble shootings

0.1 Including static files

You can set static files in the second argments. Especially, you want to inlculde multple static files, you can use "@" as splitter like the following.

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Package Application
      uses: 0h-n0/flet-action-windows@master
      with:
        srcfile: myflet_extlib/main.py
        adddata: sample.png;.

Multiple files

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Package Application
      uses: 0h-n0/flet-action-windows@master
      with:
        srcfile: myflet_extlib/main.py
        adddata: assets/sample1.png;.@assets/sample2.png;.

0.2 Import error of from

See Reference

About

this github action supports python script based on Flet


Languages

Language:Shell 80.3%Language:Dockerfile 19.7%