Skip to content

Commit

Permalink
Merge pull request #264 from berendsliedrecht/use-universal-for-darwin
Browse files Browse the repository at this point in the history
use universal for darwin
  • Loading branch information
berendsliedrecht authored Oct 31, 2023
2 parents 17bd63d + 599436f commit d87d60a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anoncreds"
version = "0.2.0-dev.4"
version = "0.2.0-dev.5"
authors = [
"Hyperledger AnonCreds Contributors <[email protected]>",
]
Expand Down
2 changes: 1 addition & 1 deletion wrappers/javascript/lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.2.0-dev.4",
"version": "0.2.0-dev.5",
"npmClient": "pnpm",
"command": {
"version": {
Expand Down
4 changes: 2 additions & 2 deletions wrappers/javascript/packages/anoncreds-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperledger/anoncreds-nodejs",
"version": "0.2.0-dev.4",
"version": "0.2.0-dev.5",
"license": "Apache-2.0",
"description": "Nodejs wrapper for Anoncreds",
"main": "build/index",
Expand Down Expand Up @@ -43,7 +43,7 @@
"binary": {
"module_name": "anoncreds",
"module_path": "native",
"remote_path": "v0.2.0-dev.2",
"remote_path": "v0.2.0-dev.5",
"host": "https://github.com/hyperledger/anoncreds-rs/releases/download/",
"package_name": "library-{platform}-{arch}.tar.gz"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
const { execSync } = require('node:child_process')
const { arch, platform } = require('os')
const { arch, platform: osPlatform } = require('os')

const archTable = {
x64: 'x86_64',
arm64: 'aarch64'
}

const targetPlatform = platform() === 'win32' ? 'windows' : platform()
const targetArchitecture = archTable[arch()]
const platform = osPlatform()
const targetPlatform = platform === 'win32' ? 'windows' : platform
const targetArchitecture = platform == 'darwin' ? 'universal' : archTable[arch]

const command = `node-pre-gyp install --target_arch=${targetArchitecture} --target_platform=${targetPlatform}`

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperledger/anoncreds-react-native",
"version": "0.2.0-dev.4",
"version": "0.2.0-dev.5",
"license": "Apache-2.0",
"description": "React Native wrapper for Anoncreds",
"main": "build/index",
Expand Down Expand Up @@ -51,7 +51,7 @@
"binary": {
"module_name": "anoncreds",
"module_path": "native",
"remote_path": "v0.2.0-dev.2",
"remote_path": "v0.2.0-dev.5",
"host": "https://github.com/hyperledger/anoncreds-rs/releases/download/",
"package_name": "library-ios-android.tar.gz"
}
Expand Down
2 changes: 1 addition & 1 deletion wrappers/javascript/packages/anoncreds-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperledger/anoncreds-shared",
"version": "0.2.0-dev.4",
"version": "0.2.0-dev.5",
"license": "Apache-2.0",
"description": "Anoncreds wrapper library with NodeJS and React Native",
"main": "build/index",
Expand Down
2 changes: 1 addition & 1 deletion wrappers/python/anoncreds/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""anoncreds library wrapper version."""

__version__ = "0.2.0-dev.4"
__version__ = "0.2.0-dev.5"

0 comments on commit d87d60a

Please sign in to comment.