@@ -29,13 +29,13 @@ pub enum Package {
29
29
/// Location of mod's folder
30
30
root_path : PathBuf ,
31
31
32
- /// Add an external binary file. By default, all known binary files
33
- /// (.dll, .lib, .dylib, .so) named after the mod ID in the root path
32
+ /// Add an external binary file. By default, all known binary files
33
+ /// (.dll, .lib, .dylib, .so) named after the mod ID in the root path
34
34
/// are included
35
35
#[ clap( short, long, num_args( 1 ..) ) ]
36
36
binary : Vec < PathBuf > ,
37
37
38
- /// Location of output file. If not provided, the resulting file is named
38
+ /// Location of output file. If not provided, the resulting file is named
39
39
/// {mod.id}.geode and placed at the root path
40
40
#[ clap( short, long) ]
41
41
output : Option < PathBuf > ,
@@ -51,8 +51,8 @@ pub enum Package {
51
51
packages : Vec < PathBuf >
52
52
} ,
53
53
54
- /// Check the dependencies of a project.
55
- /// Currently just an alias for `geode project check`, will be removed in
54
+ /// Check the dependencies of a project.
55
+ /// Currently just an alias for `geode project check`, will be removed in
56
56
/// CLI v3.0.0!
57
57
#[ deprecated( since = "v2.0.0" , note = "Will be removed in v3.0.0" ) ]
58
58
Setup {
@@ -62,9 +62,9 @@ pub enum Package {
62
62
/// Package build directory
63
63
output : PathBuf ,
64
64
65
- /// Any external dependencies as a list in the form of `mod.id:version`.
66
- /// An external dependency is one that the CLI will not verify exists in
67
- /// any way; it will just assume you have it installed through some
65
+ /// Any external dependencies as a list in the form of `mod.id:version`.
66
+ /// An external dependency is one that the CLI will not verify exists in
67
+ /// any way; it will just assume you have it installed through some
68
68
/// other means (usually through building it as part of the same project)
69
69
#[ clap( long, num_args( 0 ..) ) ]
70
70
externals : Vec < String > ,
@@ -336,7 +336,7 @@ fn create_package(
336
336
if name. to_string_lossy ( ) == mod_file_info. id
337
337
&& matches ! (
338
338
ext. to_string_lossy( ) . as_ref( ) ,
339
- "ios.dylib" | "dylib" | "dll" | "lib" | "so" | "v7 .so" | "v8 .so"
339
+ "ios.dylib" | "dylib" | "dll" | "lib" | "so" | "android32 .so" | "android64 .so"
340
340
)
341
341
{
342
342
let binary = name. to_string_lossy ( ) . to_string ( ) + "." + ext. to_string_lossy ( ) . as_ref ( ) ;
@@ -349,7 +349,7 @@ fn create_package(
349
349
// Copy other binaries
350
350
for binary in & binaries {
351
351
let mut binary_name = binary. file_name ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) . to_string ( ) ;
352
- if let Some ( ext) = [ ".ios.dylib" , ".dylib" , ".dll" , ".lib" , ".v7 .so" , ".v8 .so" , ".so" ] . iter ( ) . find ( |x| binary_name. ends_with ( * * x) ) {
352
+ if let Some ( ext) = [ ".ios.dylib" , ".dylib" , ".dll" , ".lib" , ".android32 .so" , ".android64 .so" , ".so" ] . iter ( ) . find ( |x| binary_name. ends_with ( * * x) ) {
353
353
binary_name = mod_file_info. id . to_string ( ) + ext;
354
354
}
355
355
@@ -412,7 +412,7 @@ fn merge_packages(inputs: Vec<PathBuf>) {
412
412
413
413
for archive in & mut archives {
414
414
let potential_names = [ ".dylib" , ".so" , ".dll" , ".lib" ] ;
415
-
415
+
416
416
// Rust borrow checker lol xd
417
417
let files: Vec < _ > = archive. file_names ( ) . map ( |x| x. to_string ( ) ) . collect ( ) ;
418
418
0 commit comments