@sevenvip666/rop 0.0.2 → 0.0.3
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/398.index.js +450 -0
- package/dist/api-types/src/index.d.ts +201 -0
- package/dist/api-types/src/index.d.ts.map +1 -0
- package/dist/index.js +34739 -0
- package/dist/package.json +3 -0
- package/dist/upload/lib/init.d.ts +6 -0
- package/dist/upload/lib/init.d.ts.map +1 -0
- package/dist/upload/lib/rop.d.ts +2 -0
- package/dist/upload/lib/rop.d.ts.map +1 -0
- package/dist/upload/lib/tauri/artifacts.d.ts +3 -0
- package/dist/upload/lib/tauri/artifacts.d.ts.map +1 -0
- package/dist/upload/lib/tauri/config.d.ts +22 -0
- package/dist/upload/lib/tauri/config.d.ts.map +1 -0
- package/dist/upload/lib/tauri/index.d.ts +20 -0
- package/dist/upload/lib/tauri/index.d.ts.map +1 -0
- package/dist/upload/lib/tauri/utils.d.ts +9 -0
- package/dist/upload/lib/tauri/utils.d.ts.map +1 -0
- package/dist/upload/lib/tauri.d.ts +11 -0
- package/dist/upload/lib/tauri.d.ts.map +1 -0
- package/dist/upload/lib/types.d.ts +18 -0
- package/dist/upload/lib/types.d.ts.map +1 -0
- package/dist/upload/lib/upload.d.ts +14 -0
- package/dist/upload/lib/upload.d.ts.map +1 -0
- package/dist/upload/lib/utils.d.ts +151 -0
- package/dist/upload/lib/utils.d.ts.map +1 -0
- package/dist/upload/src/main.d.ts +2 -0
- package/dist/upload/src/main.d.ts.map +1 -0
- package/dist/upload/test/upload.spec.d.ts +2 -0
- package/dist/upload/test/upload.spec.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/index.d.ts +0 -57
- package/dist/rop.js +0 -605
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/init.ts"],"names":[],"mappings":"AASA,qBAAa,IAAI;IACV,QAAQ,CAAC,SAAS,EAAE,MAAM;IA2D1B,aAAa,CAAC,SAAS,EAAE,MAAM;IAc/B,aAAa;CAWnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rop.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/rop.ts"],"names":[],"mappings":"AAmHA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/tauri/artifacts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAgB,KAAK,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEvF,wBAAsB,YAAY,CACjC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,UAAU,GACrB,OAAO,CAAC,QAAQ,EAAE,CAAC,CA+HrB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TargetPlatform } from './types.js';
|
|
2
|
+
export declare class TauriConfig {
|
|
3
|
+
private _isV2;
|
|
4
|
+
identifier: string;
|
|
5
|
+
productName?: string;
|
|
6
|
+
version?: string;
|
|
7
|
+
frontendDist?: string;
|
|
8
|
+
beforeBuildCommand?: string;
|
|
9
|
+
rpmRelease?: string;
|
|
10
|
+
wixLanguage?: string | string[] | {
|
|
11
|
+
[language: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
constructor(identifier: string, isV2?: boolean);
|
|
14
|
+
static fromBaseConfig(tauriDir: string): TauriConfig;
|
|
15
|
+
private static fromV1Base;
|
|
16
|
+
private static fromV2Base;
|
|
17
|
+
private mergeConfig;
|
|
18
|
+
mergePlatformConfig(tauriDir: string, target: TargetPlatform): void;
|
|
19
|
+
mergeUserConfig(root: string, mergeConfig: string): void;
|
|
20
|
+
updateConfigFile(tauriDir: string): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/tauri/config.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAgC,MAAM,YAAY,CAAC;AAkG1E,qBAAa,WAAW;IAEvB,OAAO,CAAC,KAAK,CAAU;IAGvB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;gBAEtD,UAAU,EAAE,MAAM,EAAE,IAAI,UAAQ;WAK9B,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW;IA4C3D,OAAO,CAAC,MAAM,CAAC,UAAU;IAiBzB,OAAO,CAAC,MAAM,CAAC,UAAU;IAiBzB,OAAO,CAAC,WAAW;IAwBZ,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc;IAQ5D,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAkBjD,gBAAgB,CAAC,QAAQ,EAAE,MAAM;CAgCxC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Arch, FrameworkUploadType } from '@/lib/types.js';
|
|
2
|
+
import { TargetPlatform, WinPackage } from '@/lib/tauri/types.js';
|
|
3
|
+
export declare const getTauriBody: (config: {
|
|
4
|
+
projectPath?: string;
|
|
5
|
+
arch?: Arch;
|
|
6
|
+
platform: TargetPlatform;
|
|
7
|
+
debug?: boolean;
|
|
8
|
+
winPackage?: WinPackage;
|
|
9
|
+
}) => Promise<FrameworkUploadType>;
|
|
10
|
+
export declare const getTauriEnv: (projectPath?: string) => {
|
|
11
|
+
basePath: string;
|
|
12
|
+
appName: string;
|
|
13
|
+
version: string;
|
|
14
|
+
wixLanguage: string | string[] | {
|
|
15
|
+
[language: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
wixAppVersion: string;
|
|
18
|
+
rpmRelease: string;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/tauri/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAY,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKlE,eAAO,MAAM,YAAY,WAAkB;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;CACxB,KAAG,QAAQ,mBAAmB,CAqB9B,CAAC;AAEF,eAAO,MAAM,WAAW,iBAAkB,MAAM;;;;;;;;;CAqD/C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CargoManifest, Info, TargetInfo } from '@/lib/tauri/types.js';
|
|
2
|
+
export declare function getWorkspaceDir(dir: string): string | null;
|
|
3
|
+
export declare function getTargetPath(targetInfo: TargetInfo): string;
|
|
4
|
+
export declare function getTargetInfo(targetPath?: string): TargetInfo;
|
|
5
|
+
export declare function getTargetDir(workspacePath: string, tauriPath: string, targetArgSet: boolean): string;
|
|
6
|
+
export declare function getTauriDir(root: string): string | null;
|
|
7
|
+
export declare function getInfo(root: string, targetInfo?: TargetInfo): Info;
|
|
8
|
+
export declare function getCargoManifest(dir: string): CargoManifest;
|
|
9
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/tauri/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,aAAa,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,sBAAsB,CAAC;AAIzG,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA6B1D;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,UAQnD;AAED,wBAAgB,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAwB7D;AAED,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,CAsDpG;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAavD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CA6DnE;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAuC3D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Arch, Platform } from '@/lib/types.js';
|
|
2
|
+
export declare const getFilePath: (config: {
|
|
3
|
+
platform: Platform;
|
|
4
|
+
arch: Arch;
|
|
5
|
+
projectPath?: string;
|
|
6
|
+
}) => {
|
|
7
|
+
filePath: string;
|
|
8
|
+
sigPath?: string;
|
|
9
|
+
version: string;
|
|
10
|
+
} | undefined;
|
|
11
|
+
//# sourceMappingURL=tauri.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tauri.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/tauri.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEhD,eAAO,MAAM,WAAW,WAAY;IACnC,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,KAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAe7D,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Platform = 'android' | 'ios' | 'windows' | 'macos' | 'linux' | 'h5';
|
|
2
|
+
export type Arch = 'aarch64' | 'x86_64' | 'x64' | 'i686' | string;
|
|
3
|
+
export interface UploadDto {
|
|
4
|
+
platform: Platform;
|
|
5
|
+
accessKey: string;
|
|
6
|
+
branch?: string;
|
|
7
|
+
version?: string;
|
|
8
|
+
arch: Arch;
|
|
9
|
+
}
|
|
10
|
+
export type UploadType = UploadDto & {
|
|
11
|
+
targetPath: string;
|
|
12
|
+
targetName?: string;
|
|
13
|
+
updatePath?: string;
|
|
14
|
+
updateName?: string;
|
|
15
|
+
signature?: string;
|
|
16
|
+
};
|
|
17
|
+
export type FrameworkUploadType = Omit<UploadType, 'accessKey' | 'branch'>;
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC;AAEhF,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAElE,MAAM,WAAW,SAAS;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;CACX;AACD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UploadType } from '@/lib/types.js';
|
|
2
|
+
export declare class RopUpload {
|
|
3
|
+
baseDomain: string;
|
|
4
|
+
constructor({ baseDomain }: {
|
|
5
|
+
baseDomain: string;
|
|
6
|
+
});
|
|
7
|
+
upload(_config: UploadType): Promise<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
body: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
private checkParams;
|
|
12
|
+
}
|
|
13
|
+
export * from './tauri/index.js';
|
|
14
|
+
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/upload.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM5C,qBAAa,SAAS;IACrB,UAAU,EAAE,MAAM,CAAC;gBACP,EAAE,UAAU,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE;IAI5C,MAAM,CAAC,OAAO,EAAE,UAAU;;;;IAqEhC,OAAO,CAAC,WAAW,CAqCjB;CACF;AAED,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Arch, Platform } from '@/lib/types.js';
|
|
2
|
+
import { Framework } from '@repo/api-types/types';
|
|
3
|
+
export declare const getBranch: () => Promise<string | undefined>;
|
|
4
|
+
export type Module = 'target' | 'update' | 'sig';
|
|
5
|
+
export declare function loadYamlWithEnv({ platform, arch, optionAccessKey, }: {
|
|
6
|
+
platform: Platform;
|
|
7
|
+
arch: Arch;
|
|
8
|
+
optionAccessKey?: string;
|
|
9
|
+
}): {
|
|
10
|
+
config: {
|
|
11
|
+
host: string;
|
|
12
|
+
projectPath: string;
|
|
13
|
+
access?: {
|
|
14
|
+
key?: string | undefined;
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
framework: {
|
|
18
|
+
name: Framework;
|
|
19
|
+
env?: Record<string, string | number | boolean>;
|
|
20
|
+
};
|
|
21
|
+
platforms: {
|
|
22
|
+
android: {
|
|
23
|
+
[x: string]: {
|
|
24
|
+
target: {
|
|
25
|
+
path: string;
|
|
26
|
+
name: string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
update: {
|
|
29
|
+
path: string;
|
|
30
|
+
name: string;
|
|
31
|
+
} | undefined;
|
|
32
|
+
sig: {
|
|
33
|
+
path: string;
|
|
34
|
+
name: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
ios: {
|
|
39
|
+
[x: string]: {
|
|
40
|
+
target: {
|
|
41
|
+
path: string;
|
|
42
|
+
name: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
update: {
|
|
45
|
+
path: string;
|
|
46
|
+
name: string;
|
|
47
|
+
} | undefined;
|
|
48
|
+
sig: {
|
|
49
|
+
path: string;
|
|
50
|
+
name: string;
|
|
51
|
+
} | undefined;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
windows: {
|
|
55
|
+
[x: string]: {
|
|
56
|
+
target: {
|
|
57
|
+
path: string;
|
|
58
|
+
name: string;
|
|
59
|
+
} | undefined;
|
|
60
|
+
update: {
|
|
61
|
+
path: string;
|
|
62
|
+
name: string;
|
|
63
|
+
} | undefined;
|
|
64
|
+
sig: {
|
|
65
|
+
path: string;
|
|
66
|
+
name: string;
|
|
67
|
+
} | undefined;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
h5: {
|
|
71
|
+
[x: string]: {
|
|
72
|
+
target: {
|
|
73
|
+
path: string;
|
|
74
|
+
name: string;
|
|
75
|
+
} | undefined;
|
|
76
|
+
update: {
|
|
77
|
+
path: string;
|
|
78
|
+
name: string;
|
|
79
|
+
} | undefined;
|
|
80
|
+
sig: {
|
|
81
|
+
path: string;
|
|
82
|
+
name: string;
|
|
83
|
+
} | undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
linux: {
|
|
87
|
+
[x: string]: {
|
|
88
|
+
target: {
|
|
89
|
+
path: string;
|
|
90
|
+
name: string;
|
|
91
|
+
} | undefined;
|
|
92
|
+
update: {
|
|
93
|
+
path: string;
|
|
94
|
+
name: string;
|
|
95
|
+
} | undefined;
|
|
96
|
+
sig: {
|
|
97
|
+
path: string;
|
|
98
|
+
name: string;
|
|
99
|
+
} | undefined;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
macos: {
|
|
103
|
+
[x: string]: {
|
|
104
|
+
target: {
|
|
105
|
+
path: string;
|
|
106
|
+
name: string;
|
|
107
|
+
} | undefined;
|
|
108
|
+
update: {
|
|
109
|
+
path: string;
|
|
110
|
+
name: string;
|
|
111
|
+
} | undefined;
|
|
112
|
+
sig: {
|
|
113
|
+
path: string;
|
|
114
|
+
name: string;
|
|
115
|
+
} | undefined;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
targetInfo: {
|
|
121
|
+
target: {
|
|
122
|
+
path: string;
|
|
123
|
+
name: string;
|
|
124
|
+
} | undefined;
|
|
125
|
+
update: {
|
|
126
|
+
path: string;
|
|
127
|
+
name: string;
|
|
128
|
+
} | undefined;
|
|
129
|
+
sig: {
|
|
130
|
+
path: string;
|
|
131
|
+
name: string;
|
|
132
|
+
} | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
accessKey: string | undefined;
|
|
135
|
+
version: any;
|
|
136
|
+
};
|
|
137
|
+
export declare const getAccessKey: (accessKey?: string, access?: {
|
|
138
|
+
key?: string;
|
|
139
|
+
name?: string;
|
|
140
|
+
}) => string | undefined;
|
|
141
|
+
export declare const getAutoEnvByFramework: (framework: Framework, projectPath?: string) => {
|
|
142
|
+
basePath: string;
|
|
143
|
+
appName: string;
|
|
144
|
+
version: string;
|
|
145
|
+
wixLanguage: string | string[] | {
|
|
146
|
+
[language: string]: unknown;
|
|
147
|
+
};
|
|
148
|
+
wixAppVersion: string;
|
|
149
|
+
rpmRelease: string;
|
|
150
|
+
} | undefined;
|
|
151
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/lib/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,eAAO,MAAM,SAAS,QAAa,QAAQ,MAAM,GAAG,SAAS,CAW1D,CAAC;AAEJ,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAGjD,wBAAgB,eAAe,CAAC,EAC/B,QAAQ,EACR,IAAI,EACJ,eAAe,GACf,EAAE;IACF,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;;cAIO,MAAM;qBACC,MAAM;;;;;mBAKR;YACV,IAAI,EAAE,SAAS,CAAC;YAChB,GAAG,CAAC,EAAE,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;SAChD;;;;;8BAMW,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;;;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;;;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;;;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;;;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;;;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;8BADN,MAAM;8BACN,MAAM;;;;;;;;kBADN,MAAM;kBACN,MAAM;;;kBADN,MAAM;kBACN,MAAM;;;kBADN,MAAM;kBACN,MAAM;;;;;EAoEnB;AAED,eAAO,MAAM,YAAY,eAAgB,MAAM,WAAW;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,uBAgBxF,CAAC;AAEF,eAAO,MAAM,qBAAqB,cAAe,SAAS,gBAAgB,MAAM;;;;;;;;;aAO/E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/src/main.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.spec.d.ts","sourceRoot":"","sources":["file:///home/runner/work/rop/rop/packages/upload/test/upload.spec.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sevenvip666/rop",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"test": "vitest",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"build2": "tsc --p ./tsconfig-build.json && vite build",
|
|
22
|
+
"build": "ncc build lib/rop.ts -o dist"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@iarna/toml": "^2.2.5",
|
package/dist/index.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { TargetPlatform } from './types.js';
|
|
2
|
-
import { WinPackage } from './types.js';
|
|
3
|
-
|
|
4
|
-
declare type Arch = 'aarch64' | 'x86_64' | 'x64' | 'i686' | string;
|
|
5
|
-
|
|
6
|
-
declare type FrameworkUploadType = Omit<UploadType, 'accessKey' | 'branch'>;
|
|
7
|
-
|
|
8
|
-
export declare const getTauriBody: (config: {
|
|
9
|
-
projectPath?: string;
|
|
10
|
-
arch?: Arch;
|
|
11
|
-
platform: TargetPlatform;
|
|
12
|
-
debug?: boolean;
|
|
13
|
-
winPackage?: WinPackage;
|
|
14
|
-
}) => Promise<FrameworkUploadType>;
|
|
15
|
-
|
|
16
|
-
export declare const getTauriEnv: (projectPath?: string) => {
|
|
17
|
-
basePath: string;
|
|
18
|
-
appName: string;
|
|
19
|
-
version: string;
|
|
20
|
-
wixLanguage: string | string[] | {
|
|
21
|
-
[language: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
wixAppVersion: string;
|
|
24
|
-
rpmRelease: string;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
declare type Platform = 'android' | 'ios' | 'windows' | 'macos' | 'linux' | 'h5';
|
|
28
|
-
|
|
29
|
-
export declare class RopUpload {
|
|
30
|
-
baseDomain: string;
|
|
31
|
-
constructor({ baseDomain }: {
|
|
32
|
-
baseDomain: string;
|
|
33
|
-
});
|
|
34
|
-
upload(_config: UploadType): Promise<{
|
|
35
|
-
success: boolean;
|
|
36
|
-
body: unknown;
|
|
37
|
-
}>;
|
|
38
|
-
private checkParams;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare interface UploadDto {
|
|
42
|
-
platform: Platform;
|
|
43
|
-
accessKey: string;
|
|
44
|
-
branch?: string;
|
|
45
|
-
version?: string;
|
|
46
|
-
arch: Arch;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare type UploadType = UploadDto & {
|
|
50
|
-
targetPath: string;
|
|
51
|
-
targetName?: string;
|
|
52
|
-
updatePath?: string;
|
|
53
|
-
updateName?: string;
|
|
54
|
-
signature?: string;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export { }
|