Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and improve code structure #125

Open
wants to merge 6 commits into
base: socketio
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,28 @@ jobs:
python -m pip install --upgrade pip
pip install pyinstaller



- name: Install escpos all modules includes win32 printing module if windows SO
run: |
pip install 'python-escpos[all]'

- name: Install socketio client
run: |
pip install 'python-socketio[client]'



- name: Install project dependencies
run: |
pip install -r requirements.server.txt # Instala las dependencias de tu proyecto
pip install -r requirements.cli.txt # Instala las dependencias de tu proyecto

- name: Build executable
run: |
pyinstaller --onefile --console --name fiscalberry --distpath dist/linux src/cli.py
pyinstaller --onefile --add-data "./capabilities.json:escpos" --console --name fiscalberry --distpath dist src/cli.py

- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: fiscalberry
path: dist/linux # Cambia esto si tu ejecutable está en una ruta diferente
path: dist # Cambia esto si tu ejecutable está en una ruta diferente
14 changes: 11 additions & 3 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,24 @@ jobs:
python -m pip install --upgrade pip
pip install pyinstaller

- name: Install escpos all modules includes win32 printing module if windows SO
run: |
pip install 'python-escpos[all]'

- name: Install socketio client
run: |
pip install 'python-socketio[client]'

- name: Install project dependencies
run: |
pip install -r requirements.cli.txt # Instala las dependencias de tu proyecto
pip install -r requirements.cli.txt

- name: Build executable
run: |
pyinstaller --onefile --console --name fiscalberry --distpath dist/win --icon ./src/common/assets/fiscalberry.ico src/cli.py
pyinstaller --onefile --add-data "./capabilities.json:escpos" --console --name fiscalberry --distpath dist --icon ./src/common/assets/fiscalberry.ico src/cli.py

- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: fiscalberry
path: dist/win
path: dist
Empty file added Descargando
Empty file.
Empty file added LICENSE
Empty file.
Loading