diff --git a/.github/workflows/package-and-publish.yml b/.github/workflows/package-and-publish.yml index 6ae5f6f10..1272a70c0 100644 --- a/.github/workflows/package-and-publish.yml +++ b/.github/workflows/package-and-publish.yml @@ -42,10 +42,15 @@ jobs: fetch-depth: 1 ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Extract version and tag id: extract-version run: | - PACKAGE_VERSION=$(grep -m1 '^version' src-tauri/Cargo.toml | sed -E 's/.*"([^"]+)".*/\1/') + PACKAGE_VERSION=$(node -p "require('./package.json').version") TAG_NAME="v${PACKAGE_VERSION}" RELEASE_NAME="AlphaHuman v${PACKAGE_VERSION}" echo "package-version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 988c49be1..fb8f4c82f 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2,6 +2,37 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "AlphaHuman" +version = "0.1.0" +dependencies = [ + "aes-gcm", + "argon2", + "base64 0.22.1", + "dirs 5.0.1", + "env_logger", + "flate2", + "keyring", + "log", + "once_cell", + "parking_lot", + "rand 0.8.5", + "reqwest", + "serde", + "serde_json", + "sha2", + "tar", + "tauri", + "tauri-build", + "tauri-plugin-autostart", + "tauri-plugin-deep-link", + "tauri-plugin-notification", + "tauri-plugin-opener", + "tauri-plugin-shell", + "tokio", + "uuid", +] + [[package]] name = "adler2" version = "2.0.1" @@ -4301,37 +4332,6 @@ dependencies = [ "windows", ] -[[package]] -name = "tauri-app" -version = "0.1.0" -dependencies = [ - "aes-gcm", - "argon2", - "base64 0.22.1", - "dirs 5.0.1", - "env_logger", - "flate2", - "keyring", - "log", - "once_cell", - "parking_lot", - "rand 0.8.5", - "reqwest", - "serde", - "serde_json", - "sha2", - "tar", - "tauri", - "tauri-build", - "tauri-plugin-autostart", - "tauri-plugin-deep-link", - "tauri-plugin-notification", - "tauri-plugin-opener", - "tauri-plugin-shell", - "tokio", - "uuid", -] - [[package]] name = "tauri-build" version = "2.5.3" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 3a3777f25..50ba3b464 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "tauri-app" +name = "AlphaHuman" version = "0.1.0" -description = "AlphaHuman - Crypto Community Platform" -authors = ["MegaMind"] +description = "AlphaHuman - AI-powered Super Assistant" +authors = ["AlphaHuman"] edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html