@sevenvip666/rop 0.1.11 → 0.1.12
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/dist/bin/index.mjs +36 -4
- package/package.json +1 -1
package/dist/bin/index.mjs
CHANGED
|
@@ -435,6 +435,28 @@ var flutter = {
|
|
|
435
435
|
]
|
|
436
436
|
};
|
|
437
437
|
var capacitor = {
|
|
438
|
+
ios: [
|
|
439
|
+
{
|
|
440
|
+
arch: "universal",
|
|
441
|
+
artifacts: {
|
|
442
|
+
target: {
|
|
443
|
+
path: "ios/build/release/App.ipa",
|
|
444
|
+
name: "${appName}_${version}.ipa"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
],
|
|
449
|
+
android: [
|
|
450
|
+
{
|
|
451
|
+
arch: "universal",
|
|
452
|
+
artifacts: {
|
|
453
|
+
target: {
|
|
454
|
+
path: "android/app/build/outputs/release/app-release.apk",
|
|
455
|
+
name: "${appName}_${version}.apk"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
]
|
|
438
460
|
};
|
|
439
461
|
var platformDefaultConfigMap = {
|
|
440
462
|
tauri: tauri,
|
|
@@ -478,7 +500,7 @@ function getDir$1(root) {
|
|
|
478
500
|
var getIonicEnv = function (projectPath) {
|
|
479
501
|
var dir = getDir(projectPath !== null && projectPath !== void 0 ? projectPath : '.');
|
|
480
502
|
if (dir !== null) {
|
|
481
|
-
if (existsSync(join(dir, 'package.json'))) {
|
|
503
|
+
if (existsSync(join(dir, 'package.json')) && existsSync(join(dir, 'capacitor.config.ts'))) {
|
|
482
504
|
var config = readFileSync(join(dir, 'capacitor.config.ts'), 'utf8').toString();
|
|
483
505
|
var json = JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8').toString());
|
|
484
506
|
// 使用正则表达式来找到 appName 的值
|
|
@@ -491,12 +513,12 @@ var getIonicEnv = function (projectPath) {
|
|
|
491
513
|
};
|
|
492
514
|
}
|
|
493
515
|
else {
|
|
494
|
-
throw Error("Couldn't detect
|
|
516
|
+
throw Error("Couldn't detect package.json and capacitor.config.ts");
|
|
495
517
|
}
|
|
496
518
|
}
|
|
497
519
|
else {
|
|
498
520
|
// This should not actually happen.
|
|
499
|
-
throw Error("Couldn't detect
|
|
521
|
+
throw Error("Couldn't detect capacitor dir");
|
|
500
522
|
}
|
|
501
523
|
};
|
|
502
524
|
function getDir(root) {
|
|
@@ -504,7 +526,17 @@ function getDir(root) {
|
|
|
504
526
|
gitignore: true,
|
|
505
527
|
cwd: root,
|
|
506
528
|
// Forcefully ignore target and node_modules dirs
|
|
507
|
-
ignore: [
|
|
529
|
+
ignore: [
|
|
530
|
+
'**/build',
|
|
531
|
+
'**/out',
|
|
532
|
+
'**/dist',
|
|
533
|
+
'**/www',
|
|
534
|
+
'**/ios',
|
|
535
|
+
'**/android',
|
|
536
|
+
'**/windows',
|
|
537
|
+
'**/macos',
|
|
538
|
+
'**/linux',
|
|
539
|
+
],
|
|
508
540
|
});
|
|
509
541
|
if (confPaths.length === 0) {
|
|
510
542
|
return null;
|