Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
  • Loading branch information
williamjmorenor committed Mar 29, 2024
1 parent df9adc2 commit 05acce4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@ name: Create Windows Executable

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

permissions:
contents: read

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cacao-accounting flaskwebgui pyvan
- name: Create Excutable
run: |
pyvan cacaoaccounting.py --no-console --icon-file cacao-accounting.ico
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cacao-accounting flaskwebgui pyvan
- name: Create Excutable
run: |
pyvan cacaoaccounting.py --no-console --icon-file assets/icon.ico
11 changes: 0 additions & 11 deletions cacaoaccounting.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
import sys, os

if sys.executable.endswith("pythonw.exe"):
sys.stdout = open(os.devnull, "w")
sys.stderr = open(
os.path.join(
os.getenv("TEMP"), "stderr-{}".format(os.path.basename(sys.argv[0]))
),
"w",
)

# Copyright 2024 BMO Soluciones
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down

0 comments on commit 05acce4

Please sign in to comment.