Skip to content

Commit

Permalink
chore: Update dependencies and build process for fiscalberry CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
alevilar committed Aug 29, 2024
1 parent 1ec351e commit 6449771
Show file tree
Hide file tree
Showing 5 changed files with 3,059 additions and 55 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,25 @@ 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 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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
- name: Install escpos all modules includes win32 printing module if windows SO
run: |
pip install 'python-escpos[all]''
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 --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
Expand Down
Loading

0 comments on commit 6449771

Please sign in to comment.