diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..aefb498 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: python:3.9 + commands: + - pip install --no-cache-dir pyinstaller + - pyinstaller --clean LaunchSim.spec + + - name: push-artifacts + image: alpine/git + environment: + GIT_USERNAME: + from_secret: GIT_USERNAME + GIT_PASSWORD: + from_secret: GIT_PASSWORD + commands: + - git config --global user.name "Drone CI" + - git config --global user.email "drone@spark-ops.com" + - git clone https://$GIT_USERNAME:$GIT_PASSWORD@git.spark-ops.com/LaunchSim/application.git + - cp README_APP.md dist/LaunchSim.exe application/ + - cd application + - git add . + - git commit -m "Actualización de LaunchSim.exe y README_APP.md" + - git push origin main diff --git a/.gitignore b/.gitignore index 880a3d2..c064d17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ SECRETS venv/ __pycache__/ -*.spec build/ -dist/ *.log \ No newline at end of file diff --git a/LaunchSim.spec b/LaunchSim.spec new file mode 100644 index 0000000..209c793 --- /dev/null +++ b/LaunchSim.spec @@ -0,0 +1,40 @@ +# -*- mode: python ; coding: utf-8 -*- + +block_cipher = None + +a = Analysis( + ['src\\main.py'], + pathex=['.'], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) + +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='LaunchSim', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['src\\static\\icon.ico'], +) diff --git a/dist/LaunchSim.exe b/dist/LaunchSim.exe new file mode 100644 index 0000000..f0a2817 Binary files /dev/null and b/dist/LaunchSim.exe differ