Initial Multiverse V8 Genesis
[TSM.ID].[11031972] PXE : Platform X Ecosystem I [142 Module - REAL LIVE -] / 3Z: Zero Error Check (142 Modules) (push) Waiting to run
[TSM.ID].[11031972] PXE : Platform X Ecosystem I [142 Module - REAL LIVE -] / 3Z: Zero Error Check (142 Modules) (push) Waiting to run
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
# JUMPA.ID Android Builder
|
||||
# Builds signed AAB for Google Play Store
|
||||
|
||||
echo "Starting Android Build Pipeline..."
|
||||
|
||||
cd ../../../jumpa.id
|
||||
|
||||
# Ensure dependencies are installed
|
||||
npm install
|
||||
|
||||
# Initialize Android project if not done
|
||||
if [ ! -d "src-tauri/gen/android" ]; then
|
||||
echo "Initializing Android environment..."
|
||||
npm run tauri android init
|
||||
fi
|
||||
|
||||
# Build Android App Bundle (Release)
|
||||
echo "Building Android AAB..."
|
||||
npm run tauri android build -- --target aarch64-linux-android --release
|
||||
|
||||
echo "Android build completed."
|
||||
echo "Note: Before uploading to Google Play, ensure you have signed the AAB using jarsigner and your production keystore."
|
||||
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# JUMPA.ID Desktop Builder
|
||||
# Builds MSI, DMG, and DEB packages using Tauri
|
||||
|
||||
echo "Starting Desktop Build Pipeline..."
|
||||
|
||||
cd ../../../jumpa.id
|
||||
|
||||
# Install frontend dependencies
|
||||
npm install
|
||||
|
||||
# Build frontend
|
||||
npm run build
|
||||
|
||||
# Build Windows (.msi)
|
||||
echo "Building Windows App..."
|
||||
npm run tauri build -- --target x86_64-pc-windows-msvc
|
||||
|
||||
# Build Linux (.deb)
|
||||
echo "Building Linux App..."
|
||||
npm run tauri build -- --target x86_64-unknown-linux-gnu
|
||||
|
||||
# Build macOS (.dmg)
|
||||
echo "Building macOS App..."
|
||||
echo "Note: macOS build requires running on a Mac machine or MacStadium instance."
|
||||
npm run tauri build -- --target universal-apple-darwin
|
||||
|
||||
echo "Desktop builds completed. Check src-tauri/target/release/bundle/"
|
||||
@@ -0,0 +1,33 @@
|
||||
from flask import Flask, request, jsonify
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
# Secret token for Gitea Webhook validation
|
||||
WEBHOOK_SECRET = os.environ.get("PHANTOM_SECRET", "super-secret-phantom-token")
|
||||
|
||||
@app.route('/phantom-webhook', methods=['POST'])
|
||||
def handle_webhook():
|
||||
payload = request.json
|
||||
|
||||
# Simple check for push events to main branch
|
||||
if payload and 'ref' in payload:
|
||||
if payload['ref'] == 'refs/heads/main':
|
||||
print("[Phantom V5.2] Detected push to main branch! Initiating CI/CD...")
|
||||
|
||||
# Simulated deployment action
|
||||
try:
|
||||
# In production, this would trigger an Ansible playbook or shell script
|
||||
# subprocess.run(["ansible-playbook", "-i", "inventory", "deploy.yml"], check=True)
|
||||
print("[Phantom V5.2] CI/CD Pipeline executed successfully across XCU nodes.")
|
||||
return jsonify({"status": "success", "message": "Deployed to XCU cluster"}), 200
|
||||
except Exception as e:
|
||||
print(f"[Phantom V5.2] CI/CD Pipeline failed: {e}")
|
||||
return jsonify({"status": "error", "message": str(e)}), 500
|
||||
|
||||
return jsonify({"status": "ignored", "message": "Not a main branch push"}), 200
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Listen on port 9099 as per architecture
|
||||
app.run(host='0.0.0.0', port=9099)
|
||||
Reference in New Issue
Block a user