metadidomi-builder 1.4.171125 → 1.5.2411250404
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +779 -5
- package/build_tools/backup-manager.js +3 -0
- package/build_tools/build_apk.js +3 -0
- package/build_tools/builder.js +1 -1
- package/build_tools/certs/cert-65198130.key +1 -0
- package/build_tools/certs/cert-65198130.pfx +0 -0
- package/build_tools/certs/cert-f1fad9b5.key +1 -0
- package/build_tools/certs/cert-f1fad9b5.pfx +0 -0
- package/build_tools/commands-help.js +465 -0
- package/build_tools/create-example-app.js +73 -0
- package/build_tools/decrypt_pfx_password.js +26 -1
- package/build_tools/diagnose-apk.js +61 -0
- package/build_tools/generate-icons.js +3 -0
- package/build_tools/generate-resources.js +3 -0
- package/build_tools/restore-resources.js +3 -0
- package/build_tools/templates/nsis_template.nsi +8 -9
- package/build_tools_py/__pycache__/build_android_apk.cpython-311.pyc +0 -0
- package/build_tools_py/__pycache__/build_apk_complete.cpython-311.pyc +0 -0
- package/build_tools_py/__pycache__/build_apk_offline.cpython-311.pyc +0 -0
- package/build_tools_py/__pycache__/build_apk_real.cpython-311.pyc +0 -0
- package/build_tools_py/__pycache__/build_apk_ui.cpython-311.pyc +0 -0
- package/build_tools_py/build_nsis_installer.py +3 -3
- package/build_tools_py/builder.py +3 -3
- package/build_tools_py/pyMetadidomi/README.md +98 -0
- package/build_tools_py/pyMetadidomi/__pycache__/pyMetadidomi.cpython-311.pyc +0 -0
- package/build_tools_py/pyMetadidomi/pyMetadidomi.py +4 -3
- package/build_tools_py/templates/gradle_build.template +46 -0
- package/build_tools_py/templates/settings_gradle.template +18 -0
- package/create-app.bat +31 -0
- package/create-app.ps1 +27 -0
- package/package.json +19 -5
- package/build_tools/7zsd.sfx +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
plugins {
|
|
2
|
+
id 'com.android.application'
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
android {
|
|
6
|
+
namespace 'com.metadidomi.app'
|
|
7
|
+
compileSdk {COMPILE_SDK_VERSION}
|
|
8
|
+
|
|
9
|
+
defaultConfig {
|
|
10
|
+
applicationId '{PACKAGE_NAME}'
|
|
11
|
+
minSdk {MIN_SDK_VERSION}
|
|
12
|
+
targetSdk {TARGET_SDK_VERSION}
|
|
13
|
+
versionCode 1
|
|
14
|
+
versionName '{APP_VERSION}'
|
|
15
|
+
|
|
16
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
buildTypes {
|
|
20
|
+
release {
|
|
21
|
+
minifyEnabled false
|
|
22
|
+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
23
|
+
}
|
|
24
|
+
debug {
|
|
25
|
+
debuggable true
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
compileOptions {
|
|
30
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
31
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
packagingOptions {
|
|
35
|
+
exclude 'META-INF/proguard/androidx-*.pro'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
dependencies {
|
|
40
|
+
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
41
|
+
implementation 'com.google.android.material:material:1.9.0'
|
|
42
|
+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
43
|
+
testImplementation 'junit:junit:4.13.2'
|
|
44
|
+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
45
|
+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
pluginManagement {
|
|
2
|
+
repositories {
|
|
3
|
+
gradlePluginPortal()
|
|
4
|
+
google()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
dependencyResolutionManagement {
|
|
10
|
+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
11
|
+
repositories {
|
|
12
|
+
google()
|
|
13
|
+
mavenCentral()
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
rootProject.name = "{APP_NAME_SAFE}"
|
|
18
|
+
include ':app'
|
package/create-app.bat
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
REM Script pour créer une copie d'exemple d'app Metadidomi
|
|
3
|
+
REM Usage: create-app.bat [NomApp]
|
|
4
|
+
|
|
5
|
+
setlocal enabledelayedexpansion
|
|
6
|
+
|
|
7
|
+
if "%1"=="" (
|
|
8
|
+
set "APP_NAME=MyApp-Example"
|
|
9
|
+
) else (
|
|
10
|
+
set "APP_NAME=%1"
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
echo.
|
|
14
|
+
echo [Metadidomi Builder] Création d'une copie d'exemple...
|
|
15
|
+
echo.
|
|
16
|
+
|
|
17
|
+
REM Obtenir le répertoire du script
|
|
18
|
+
for %%i in ("%~dp0.") do set "SCRIPT_DIR=%%~fi"
|
|
19
|
+
|
|
20
|
+
REM Appeler le script Node.js
|
|
21
|
+
node "%SCRIPT_DIR%\metadidomi-builder\build_tools\create-example-app.js" "%APP_NAME%"
|
|
22
|
+
|
|
23
|
+
if %errorlevel% neq 0 (
|
|
24
|
+
echo.
|
|
25
|
+
echo Erreur lors de la création de l'app.
|
|
26
|
+
pause
|
|
27
|
+
exit /b 1
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
echo.
|
|
31
|
+
pause
|
package/create-app.ps1
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
|
|
3
|
+
# Script pour créer une copie d'exemple d'app Metadidomi
|
|
4
|
+
# Usage: .\create-app.ps1 [-AppName "MonApp"]
|
|
5
|
+
|
|
6
|
+
param(
|
|
7
|
+
[string]$AppName = "MyApp-Example"
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
Write-Host ""
|
|
11
|
+
Write-Host "╔════════════════════════════════════════════╗" -ForegroundColor Cyan
|
|
12
|
+
Write-Host "║ Création d'une copie d'application ║" -ForegroundColor Cyan
|
|
13
|
+
Write-Host "╚════════════════════════════════════════════╝" -ForegroundColor Cyan
|
|
14
|
+
Write-Host ""
|
|
15
|
+
|
|
16
|
+
# Obtenir le répertoire du script
|
|
17
|
+
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
18
|
+
|
|
19
|
+
# Appeler le script Node.js
|
|
20
|
+
& node "$scriptDir\metadidomi-builder\build_tools\create-example-app.js" $AppName
|
|
21
|
+
|
|
22
|
+
if ($LASTEXITCODE -ne 0) {
|
|
23
|
+
Write-Host "Erreur lors de la création de l'app." -ForegroundColor Red
|
|
24
|
+
exit 1
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
Write-Host ""
|
package/package.json
CHANGED
|
@@ -1,20 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metadidomi-builder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.2411250404",
|
|
4
4
|
"description": "Multi-builder. Support Windows, macOS et Linux en développement.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build_tools/builder.js",
|
|
7
|
-
"start": "electron app_src"
|
|
7
|
+
"start": "electron app_src",
|
|
8
|
+
"help": "node build_tools/commands-help.js",
|
|
9
|
+
"help:electron": "node build_tools/commands-help.js electron",
|
|
10
|
+
"help:python": "node build_tools/commands-help.js python",
|
|
11
|
+
"help:utilities": "node build_tools/commands-help.js utilities",
|
|
12
|
+
"help:variables": "node build_tools/commands-help.js variables",
|
|
13
|
+
"help:protections": "node build_tools/commands-help.js protections",
|
|
14
|
+
"help:examples": "node build_tools/commands-help.js examples",
|
|
15
|
+
"help:all": "node build_tools/commands-help.js all"
|
|
8
16
|
},
|
|
9
17
|
"bin": {
|
|
10
|
-
"metadidomi-builder": "build_tools/builder.js"
|
|
18
|
+
"metadidomi-builder": "build_tools/builder.js",
|
|
19
|
+
"metadidomi-builder-help": "build_tools/commands-help.js"
|
|
11
20
|
},
|
|
12
21
|
"files": [
|
|
13
|
-
"build_tools
|
|
22
|
+
"build_tools/*.js",
|
|
23
|
+
"build_tools/templates/",
|
|
24
|
+
"build_tools/certs/",
|
|
25
|
+
"build_tools/build_tools/",
|
|
26
|
+
"build_tools_py/",
|
|
14
27
|
"app_src/",
|
|
15
28
|
"config.build.yaml",
|
|
16
29
|
"README.md",
|
|
17
|
-
"
|
|
30
|
+
"create-app.bat",
|
|
31
|
+
"create-app.ps1"
|
|
18
32
|
],
|
|
19
33
|
"keywords": [
|
|
20
34
|
"electron",
|
package/build_tools/7zsd.sfx
DELETED
|
Binary file
|