@@ -25,16 +25,19 @@ use crate::utils::fs::get_sha1_checksums;
25
25
use crate :: utils:: fs:: TempDir ;
26
26
use crate :: utils:: fs:: TempFile ;
27
27
#[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ]
28
- use crate :: utils:: mobile_app:: { handle_asset_catalogs, ipa_to_xcarchive, is_ipa_file} ;
29
- use crate :: utils:: mobile_app:: { is_aab_file, is_apk_file, is_apple_app, is_zip_file} ;
28
+ use crate :: utils:: mobile_app:: {
29
+ handle_asset_catalogs, ipa_to_xcarchive, is_apple_app, is_ipa_file,
30
+ } ;
31
+ use crate :: utils:: mobile_app:: { is_aab_file, is_apk_file, is_zip_file} ;
30
32
use crate :: utils:: progress:: ProgressBar ;
31
33
use crate :: utils:: vcs;
32
34
33
35
pub fn make_command ( command : Command ) -> Command {
34
36
#[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ]
35
37
const HELP_TEXT : & str = "The path to the mobile app files to upload. Supported files include Apk, Aab, XCArchive, and IPA." ;
36
38
#[ cfg( not( all( target_os = "macos" , target_arch = "aarch64" ) ) ) ]
37
- const HELP_TEXT : & str = "The path to the mobile app files to upload. Supported files include Apk, Aab, and XCArchive." ;
39
+ const HELP_TEXT : & str =
40
+ "The path to the mobile app files to upload. Supported files include Apk, and Aab." ;
38
41
command
39
42
. about ( "[EXPERIMENTAL] Upload mobile app files to a project." )
40
43
. org_arg ( )
@@ -201,6 +204,7 @@ fn handle_file(path: &Path, byteview: &ByteView) -> Result<TempFile> {
201
204
fn validate_is_mobile_app ( path : & Path , bytes : & [ u8 ] ) -> Result < ( ) > {
202
205
debug ! ( "Validating mobile app format for: {}" , path. display( ) ) ;
203
206
207
+ #[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ]
204
208
if is_apple_app ( path) {
205
209
debug ! ( "Detected XCArchive directory" ) ;
206
210
return Ok ( ( ) ) ;
@@ -234,7 +238,7 @@ fn validate_is_mobile_app(path: &Path, bytes: &[u8]) -> Result<()> {
234
238
#[ cfg( all( target_os = "macos" , target_arch = "aarch64" ) ) ]
235
239
let format_list = "APK, AAB, XCArchive, or IPA" ;
236
240
#[ cfg( not( all( target_os = "macos" , target_arch = "aarch64" ) ) ) ]
237
- let format_list = "APK, AAB, or XCArchive " ;
241
+ let format_list = "APK, or AAB " ;
238
242
239
243
Err ( anyhow ! (
240
244
"File is not a recognized mobile app format ({format_list}): {}" ,
0 commit comments