Skip to content

Commit 95df829

Browse files
authored
change v7.so and v8.so to the new extensions (#29)
1 parent 36e41be commit 95df829

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "geode"
3-
version = "2.6.5"
3+
version = "2.6.6"
44
authors = ["HJfod <[email protected]>", "Camila314 <[email protected]>", "matcool", "ConfiG <[email protected]>"]
55
edition = "2021"
66
build = "build.rs"

src/package.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ pub enum Package {
2929
/// Location of mod's folder
3030
root_path: PathBuf,
3131

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
3434
/// are included
3535
#[clap(short, long, num_args(1..))]
3636
binary: Vec<PathBuf>,
3737

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
3939
/// {mod.id}.geode and placed at the root path
4040
#[clap(short, long)]
4141
output: Option<PathBuf>,
@@ -51,8 +51,8 @@ pub enum Package {
5151
packages: Vec<PathBuf>
5252
},
5353

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
5656
/// CLI v3.0.0!
5757
#[deprecated(since = "v2.0.0", note = "Will be removed in v3.0.0")]
5858
Setup {
@@ -62,9 +62,9 @@ pub enum Package {
6262
/// Package build directory
6363
output: PathBuf,
6464

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
6868
/// other means (usually through building it as part of the same project)
6969
#[clap(long, num_args(0..))]
7070
externals: Vec<String>,
@@ -336,7 +336,7 @@ fn create_package(
336336
if name.to_string_lossy() == mod_file_info.id
337337
&& matches!(
338338
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"
340340
)
341341
{
342342
let binary = name.to_string_lossy().to_string() + "." + ext.to_string_lossy().as_ref();
@@ -349,7 +349,7 @@ fn create_package(
349349
// Copy other binaries
350350
for binary in &binaries {
351351
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)) {
353353
binary_name = mod_file_info.id.to_string() + ext;
354354
}
355355

@@ -412,7 +412,7 @@ fn merge_packages(inputs: Vec<PathBuf>) {
412412

413413
for archive in &mut archives {
414414
let potential_names = [".dylib", ".so", ".dll", ".lib"];
415-
415+
416416
// Rust borrow checker lol xd
417417
let files: Vec<_> = archive.file_names().map(|x| x.to_string()).collect();
418418

0 commit comments

Comments
 (0)