@sevenvip666/rop 0.1.11 → 0.1.13
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 +47 -4
- package/dist/types/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/bin/index.mjs
CHANGED
|
@@ -435,6 +435,39 @@ 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/apk/app-release.apk",
|
|
455
|
+
name: "${appName}_${version}.apk"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
web: [
|
|
461
|
+
{
|
|
462
|
+
arch: "universal",
|
|
463
|
+
artifacts: {
|
|
464
|
+
target: {
|
|
465
|
+
path: "${appName}.zip",
|
|
466
|
+
name: "${appName}_${version}.zip"
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
]
|
|
438
471
|
};
|
|
439
472
|
var platformDefaultConfigMap = {
|
|
440
473
|
tauri: tauri,
|
|
@@ -478,7 +511,7 @@ function getDir$1(root) {
|
|
|
478
511
|
var getIonicEnv = function (projectPath) {
|
|
479
512
|
var dir = getDir(projectPath !== null && projectPath !== void 0 ? projectPath : '.');
|
|
480
513
|
if (dir !== null) {
|
|
481
|
-
if (existsSync(join(dir, 'package.json'))) {
|
|
514
|
+
if (existsSync(join(dir, 'package.json')) && existsSync(join(dir, 'capacitor.config.ts'))) {
|
|
482
515
|
var config = readFileSync(join(dir, 'capacitor.config.ts'), 'utf8').toString();
|
|
483
516
|
var json = JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8').toString());
|
|
484
517
|
// 使用正则表达式来找到 appName 的值
|
|
@@ -491,12 +524,12 @@ var getIonicEnv = function (projectPath) {
|
|
|
491
524
|
};
|
|
492
525
|
}
|
|
493
526
|
else {
|
|
494
|
-
throw Error("Couldn't detect
|
|
527
|
+
throw Error("Couldn't detect package.json and capacitor.config.ts");
|
|
495
528
|
}
|
|
496
529
|
}
|
|
497
530
|
else {
|
|
498
531
|
// This should not actually happen.
|
|
499
|
-
throw Error("Couldn't detect
|
|
532
|
+
throw Error("Couldn't detect capacitor dir");
|
|
500
533
|
}
|
|
501
534
|
};
|
|
502
535
|
function getDir(root) {
|
|
@@ -504,7 +537,17 @@ function getDir(root) {
|
|
|
504
537
|
gitignore: true,
|
|
505
538
|
cwd: root,
|
|
506
539
|
// Forcefully ignore target and node_modules dirs
|
|
507
|
-
ignore: [
|
|
540
|
+
ignore: [
|
|
541
|
+
'**/build',
|
|
542
|
+
'**/out',
|
|
543
|
+
'**/dist',
|
|
544
|
+
'**/www',
|
|
545
|
+
'**/ios',
|
|
546
|
+
'**/android',
|
|
547
|
+
'**/windows',
|
|
548
|
+
'**/macos',
|
|
549
|
+
'**/linux',
|
|
550
|
+
],
|
|
508
551
|
});
|
|
509
552
|
if (confPaths.length === 0) {
|
|
510
553
|
return null;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare enum Framework {
|
|
|
9
9
|
FLUTTER = "flutter"
|
|
10
10
|
}
|
|
11
11
|
export type FrameworkType = (typeof frameworkList)[number];
|
|
12
|
-
export type Platform = 'android' | 'ios' | 'windows' | 'macos' | 'linux' | '
|
|
12
|
+
export type Platform = 'android' | 'ios' | 'windows' | 'macos' | 'linux' | 'web';
|
|
13
13
|
export type Arch = 'aarch64' | 'x86_64' | 'x64' | 'i686' | 'universal' | 'arm64' | 'i386' | string;
|
|
14
14
|
export type Module = 'target' | 'update' | 'sig';
|
|
15
15
|
export type ProjectConfigJson = {
|