mirror of
https://github.com/KeymonSoft/Kelloggs_v4.git
synced 2026-04-21 03:49:14 +00:00
Compare commits
12 Commits
v5.12.15
...
v5.12.15.t
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e19a197a1 | |||
| 64e9e6b389 | |||
| 63df3fbf39 | |||
| e72a1381d5 | |||
| 367ff75966 | |||
| 2ec2e9acb3 | |||
| 246437fc98 | |||
| 67e0b906dc | |||
| d7e6643f15 | |||
| cc5261c67f | |||
| cc36c6c1da | |||
| 441fe0c5fb |
@@ -18,6 +18,7 @@ Version=9.85
|
|||||||
'###################### PUSH TORTOISE GIT #########################################################
|
'###################### PUSH TORTOISE GIT #########################################################
|
||||||
'Ctrl + click ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=TortoiseGitProc&Args=/command:commit&Args=/path:"./../../"&Args=/closeonend:2
|
'Ctrl + click ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=TortoiseGitProc&Args=/command:commit&Args=/path:"./../../"&Args=/closeonend:2
|
||||||
'###########################################################################################################
|
'###########################################################################################################
|
||||||
|
'Ctrl + clic para Git: ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=-ExecutionPolicy&Args=Bypass&Args=-File&Args=..\_git_tag.ps1&Args=%22%PROJECT%%22&Args=%22%PROJECT_NAME%%22
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
'Ctrl + click ide://run?file=%WINDIR%\System32\cmd.exe&Args=/c&Args=github&Args=..\..\
|
'Ctrl + click ide://run?file=%WINDIR%\System32\cmd.exe&Args=/c&Args=github&Args=..\..\
|
||||||
|
|||||||
@@ -917,7 +917,7 @@ Version=12.8
|
|||||||
#Region Project Attributes
|
#Region Project Attributes
|
||||||
#ApplicationLabel: Kelloggs Venta
|
#ApplicationLabel: Kelloggs Venta
|
||||||
#VersionCode: 3000
|
#VersionCode: 3000
|
||||||
#VersionName: 5.12.15
|
#VersionName: 5.12.15.test
|
||||||
#SupportedOrientations: portrait
|
#SupportedOrientations: portrait
|
||||||
#CanInstallToExternalStorage: False
|
#CanInstallToExternalStorage: False
|
||||||
#BridgeLogger:true
|
#BridgeLogger:true
|
||||||
|
|||||||
@@ -100,6 +100,6 @@ ModuleClosedNodes6=
|
|||||||
ModuleClosedNodes7=
|
ModuleClosedNodes7=
|
||||||
ModuleClosedNodes8=
|
ModuleClosedNodes8=
|
||||||
ModuleClosedNodes9=
|
ModuleClosedNodes9=
|
||||||
NavigationStack=C_Cliente,B4XPage_Appear,841,0,B4XMainPage,Class_Globals,118,0,B4XMainPage,Initialize,126,0,C_Principal,cargar_Click,1031,0,Subs,modTrendSpending,2210,3,C_TrendSpending,modTrendSpending,112,2,C_Productos,B4XPage_Appear,236,0,C_TrendSpending,traeDescXSku,59,0,C_TrendSpending,traeInfoTrendSpending,73,2,C_Principal,JobDone,2240,0
|
NavigationStack=C_Principal,cargar_Click,1031,0,Subs,modTrendSpending,2210,3,C_TrendSpending,modTrendSpending,112,2,C_Productos,B4XPage_Appear,236,0,C_TrendSpending,traeDescXSku,59,0,C_TrendSpending,traeInfoTrendSpending,73,2,C_Principal,JobDone,2240,0,Main,Activity_Create,43,0,B4XMainPage,Class_Globals,119,0,B4XMainPage,Initialize,127,0
|
||||||
SelectedBuild=0
|
SelectedBuild=0
|
||||||
VisibleModules=31,1,12,3,32,13,14,20,19,33,16
|
VisibleModules=31,1,12,3,32,13,14,20,19,33,16
|
||||||
|
|||||||
105
B4A/_git_tag.ps1
Normal file
105
B4A/_git_tag.ps1
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
# --- SCRIPT DE AUTODESCUBRIMIENTO CON GUI MEJORADA ---
|
||||||
|
|
||||||
|
# Cargar librería visual
|
||||||
|
Add-Type -AssemblyName System.Windows.Forms
|
||||||
|
Add-Type -AssemblyName System.Drawing
|
||||||
|
|
||||||
|
# 1. AUTODESCUBRIMIENTO
|
||||||
|
$projectPath = $PSScriptRoot
|
||||||
|
Write-Host "Ruta: $projectPath"
|
||||||
|
|
||||||
|
$b4aFileItem = Get-ChildItem -Path $projectPath -Filter "*.b4a" | Select-Object -First 1
|
||||||
|
|
||||||
|
if (-Not $b4aFileItem) {
|
||||||
|
[System.Windows.Forms.MessageBox]::Show("No hay archivo .b4a en esta carpeta.", "Error", "OK", "Error")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
$b4aFile = $b4aFileItem.FullName
|
||||||
|
$projectName = $b4aFileItem.BaseName
|
||||||
|
Write-Host "Proyecto: $projectName"
|
||||||
|
|
||||||
|
# 2. LIMPIEZA
|
||||||
|
# $objectsPath = Join-Path $projectPath "Objects"
|
||||||
|
# if (Test-Path $objectsPath) {
|
||||||
|
# Write-Host "Limpiando Objects..."
|
||||||
|
# Remove-Item -Path "$objectsPath\*" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
# }
|
||||||
|
|
||||||
|
# 3. LEER VERSIÓN
|
||||||
|
$versionLine = Get-Content $b4aFile | Select-String "#VersionName:"
|
||||||
|
if (-Not $versionLine) { Write-Error "Falta #VersionName"; return }
|
||||||
|
$version = ($versionLine -split ":")[1].Trim()
|
||||||
|
$tagName = "v$version"
|
||||||
|
|
||||||
|
Set-Location $projectPath
|
||||||
|
|
||||||
|
# 4. COMMIT
|
||||||
|
$oldCommit = git rev-parse HEAD
|
||||||
|
|
||||||
|
Write-Host "----------------------------------------"
|
||||||
|
Write-Host "Versión: $version"
|
||||||
|
Write-Host "Abriendo TortoiseGit..."
|
||||||
|
|
||||||
|
# Argumentos limpios
|
||||||
|
$pathArg = '/path:"{0}"' -f $projectPath
|
||||||
|
$msgArg = '/logmsg:"Version {0}"' -f $version
|
||||||
|
$cmdArg = "/command:commit"
|
||||||
|
|
||||||
|
$process = Start-Process "TortoiseGitProc.exe" -ArgumentList $cmdArg, $pathArg, $msgArg -Wait -PassThru
|
||||||
|
|
||||||
|
$newCommit = git rev-parse HEAD
|
||||||
|
|
||||||
|
# 5. VALIDACIÓN
|
||||||
|
if ($oldCommit -eq $newCommit) {
|
||||||
|
Write-Warning "Commit cancelado."
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host ">> Commit detectado."
|
||||||
|
|
||||||
|
# 6. GESTIÓN DE TAGS (VISUAL TOPMOST)
|
||||||
|
$remoteTagInfo = git ls-remote --tags origin $tagName
|
||||||
|
|
||||||
|
if ($remoteTagInfo) {
|
||||||
|
# --- TRUCO PARA QUE LA VENTANA SALGA AL FRENTE ---
|
||||||
|
# Creamos un formulario invisible que esté "Siempre Visible" (TopMost)
|
||||||
|
$topForm = New-Object System.Windows.Forms.Form
|
||||||
|
$topForm.TopMost = $true
|
||||||
|
$topForm.Opacity = 0 # Invisible
|
||||||
|
$topForm.ShowInTaskbar = $false
|
||||||
|
$topForm.StartPosition = "CenterScreen"
|
||||||
|
$topForm.Show()
|
||||||
|
$topForm.Activate()
|
||||||
|
|
||||||
|
[System.Console]::Beep(1000, 200)
|
||||||
|
|
||||||
|
$msgBody = "El tag '$tagName' YA EXISTE en GitHub.`n`nDeseas SOBRESCRIBIRLO?`n`nSi = Borrar anterior y actualizar (Force Push).`nNo = Subir solo codigo (mantener tag viejo)."
|
||||||
|
$msgTitle = "⚠️ Conflicto de Versiones - $projectName"
|
||||||
|
|
||||||
|
# El mensaje ahora es "hijo" del formulario invisible, heredando su propiedad TopMost
|
||||||
|
$respuesta = [System.Windows.Forms.MessageBox]::Show($topForm, $msgBody, $msgTitle, "YesNo", "Warning")
|
||||||
|
|
||||||
|
$topForm.Dispose() # Limpiamos el formulario invisible
|
||||||
|
|
||||||
|
if ($respuesta -eq "Yes") {
|
||||||
|
Write-Host "Sobrescribiendo..."
|
||||||
|
git tag -d $tagName 2>$null
|
||||||
|
git tag -a $tagName -m "Release version $version (Updated)"
|
||||||
|
|
||||||
|
git push origin
|
||||||
|
git push origin $tagName --force
|
||||||
|
Write-Host ">> Tag actualizado (Force Push)."
|
||||||
|
} else {
|
||||||
|
Write-Host "Conservando tag anterior..."
|
||||||
|
git push origin
|
||||||
|
Write-Host ">> Código subido."
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
# Tag Nuevo
|
||||||
|
git tag -a $tagName -m "Release version $version"
|
||||||
|
git push origin --follow-tags
|
||||||
|
Write-Host ">> Versión publicada."
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "----------------------------------------"
|
||||||
29
B4A/_juntaBas.bat
Normal file
29
B4A/_juntaBas.bat
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal EnableDelayedExpansion
|
||||||
|
|
||||||
|
:: Nombre del archivo de salida
|
||||||
|
set "OutputFile=TODOS_LOS_BAS.txt"
|
||||||
|
|
||||||
|
:: Si existe una versión anterior, la elimina para no anexar datos duplicados
|
||||||
|
if exist "!OutputFile!" del "!OutputFile!"
|
||||||
|
|
||||||
|
echo Iniciando proceso de fusion...
|
||||||
|
|
||||||
|
:: Itera sobre todos los archivos .bas en el directorio actual
|
||||||
|
for %%F in (*.bas *.b4a *.b4j) do (
|
||||||
|
echo Procesando: %%F
|
||||||
|
|
||||||
|
:: Agrega un salto de linea y el encabezado al archivo de salida
|
||||||
|
echo. >> "!OutputFile!"
|
||||||
|
echo ====================================== >> "!OutputFile!"
|
||||||
|
echo ARCHIVO: %%F >> "!OutputFile!"
|
||||||
|
echo ====================================== >> "!OutputFile!"
|
||||||
|
echo. >> "!OutputFile!"
|
||||||
|
|
||||||
|
:: Vuelca el contenido del archivo actual al archivo de salida
|
||||||
|
type "%%F" >> "!OutputFile!"
|
||||||
|
)
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo Proceso terminado. Se ha creado el archivo: !OutputFile!
|
||||||
|
pause
|
||||||
Reference in New Issue
Block a user