CICD Update
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Pedro Jose Romero Gombau 2025-01-21 17:38:15 +01:00
parent 2b38528896
commit e8567bbc75
4 changed files with 67 additions and 2 deletions

27
.drone.yml Normal file
View File

@ -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

2
.gitignore vendored
View File

@ -1,7 +1,5 @@
SECRETS
venv/
__pycache__/
*.spec
build/
dist/
*.log

40
LaunchSim.spec Normal file
View File

@ -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'],
)

BIN
dist/LaunchSim.exe vendored Normal file

Binary file not shown.