Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade Tauri Builder Version #3656

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

H0llyW00dzZ
Copy link
Contributor

in version 1.5.8 of Tauri builder (Tauri CLI) It's error while building apps
might it will break the CI/CD for Release App

Error Log:

Plugin function not found, cannot call nsis_tauri_utils::FindProcessCurrentUser
Error in macro CheckIfAppIsRunning on macroline 2

Tip

Another tips fix a git in front-end app (e.g, using github desktop) if unable to push commit after downgrade package

Bash:

git config --unset core.hooksPath

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
@H0llyW00dzZ
Copy link
Contributor Author

bash script for test

#!/bin/bash

# Set the TAURI_PRIVATE_KEY environment variable
export TAURI_PRIVATE_KEY=your_private_tauri_key

# Define the default values for the modified fields
new_identifier="your_identifier"
new_version="2.9.13"
new_title="ChatGPT Next Web | ver: v2.9.13 | Contributor: @H0llyW00dzZ | Devs Build"
new_pubkey="your_public_tauri_key"

# Parse command-line arguments
while [[ $# -gt 0 ]]; do
    key="\$1"
    case $key in
        -ver|--version)
            new_version="\$2"
            shift
            shift
            ;;
        *)
            echo "Unknown option: $key"
            exit 1
            ;;
    esac
done

# Check if the tauri.conf.json file exists
conf_file="src-tauri/tauri.conf.json"
if [ ! -f "$conf_file" ]; then
    echo "Error: $conf_file does not exist."
    exit 1
fi

# Create a temporary file to store the original content
tmp_conf_file="tmp_tauri.conf.json"
cp "$conf_file" "$tmp_conf_file"

# Modify the tauri.conf.json file
../jq-win64.exe --arg identifier "$new_identifier" '.tauri.bundle.identifier = $identifier' "$conf_file" > tmp_conf_file && mv tmp_conf_file "$conf_file"
if [ -n "$new_version" ]; then
    ../jq-win64.exe --arg version "$new_version" '.package.version = $version' "$conf_file" > tmp_conf_file && mv tmp_conf_file "$conf_file"
fi
../jq-win64.exe --arg title "$new_title" '.tauri.windows[0].title = $title' "$conf_file" > tmp_conf_file && mv tmp_conf_file "$conf_file"
../jq-win64.exe --arg pubkey "$new_pubkey" '.tauri.updater.pubkey = $pubkey' "$conf_file" > tmp_conf_file && mv tmp_conf_file "$conf_file"

if [ $? -eq 0 ]; then
    echo "tauri.conf.json file modified successfully."
else
    echo "Error modifying tauri.conf.json file. Reverting changes..."
    mv "$tmp_conf_file" "$conf_file"
    exit 1
fi

# Build the Tauri application
yarn tauri build

# Revert the changes to the tauri.conf.json file
mv "$tmp_conf_file" "$conf_file"

@H0llyW00dzZ
Copy link
Contributor Author

H0llyW00dzZ commented Dec 26, 2023

Note

Replace ../jq-win64.exe with jq if you are on unix-system/linux have jq installed

@fredliang44 fredliang44 merged commit 64a8ba6 into ChatGPTNextWeb:main Dec 27, 2023
1 check failed
@H0llyW00dzZ H0llyW00dzZ deleted the downgradetauri branch December 27, 2023 15:48
fredliang44 pushed a commit that referenced this pull request Dec 27, 2023
- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
phanturne added a commit to phanturne/metadachi-old that referenced this pull request Dec 28, 2023
fredliang44 added a commit that referenced this pull request Dec 28, 2023
* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
H0llyW00dzZ added a commit to H0llyW00dzZ/ChatGPT-Next-Web that referenced this pull request Dec 28, 2023
* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (ChatGPTNextWeb#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
fredliang44 added a commit that referenced this pull request Dec 28, 2023
* fix: remove the content-encoding header

* fix: remove the content-encoding header

* Update api.ts to set proper header "Accept"

So it can work fine for some GPT forward service.

* Chore [Package] Downgrade Tauri Builder Version (#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* Release 2.10.1: Support Google Gemini Pro model (#3668)

* chore: update auth value logic

* chore: bump version 2.10.1

* chore(docs): update readme for Gemini Pro (#3685)

* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>

* feat: support vercel speed insight (#3686)

* Non -GPT model disable system prompt (#3684)

* feat: support streaming for Gemini Pro (#3688)

* feat: support streaming for Gemini Pro

* feat: display texts smoothly

* chore: remove comments

---------

Co-authored-by: akira-cn <akira.cn@gmail.com>
Co-authored-by: Rocky <40670362@qq.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: reece00 <37351410+reece00@users.noreply.github.com>
Hk-Gosuto pushed a commit to Hk-Gosuto/ChatGPT-Next-Web-LangChain that referenced this pull request Dec 29, 2023
- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
fredliang44 added a commit that referenced this pull request Dec 31, 2023
* fix: remove the content-encoding header

* fix: remove the content-encoding header

* Update api.ts to set proper header "Accept"

So it can work fine for some GPT forward service.

* Chore [Package] Downgrade Tauri Builder Version (#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* Release 2.10.1: Support Google Gemini Pro model (#3668)

* chore: update auth value logic

* chore: bump version 2.10.1

* chore(docs): update readme for Gemini Pro (#3685)

* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>

* feat: support vercel speed insight (#3686)

* Non -GPT model disable system prompt (#3684)

* feat: support streaming for Gemini Pro (#3688)

* feat: support streaming for Gemini Pro

* feat: display texts smoothly

* chore: remove comments

* update readme (#3715)

* feat: update new logo & cover image (#3716)

---------

Co-authored-by: akira-cn <akira.cn@gmail.com>
Co-authored-by: Rocky <40670362@qq.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: reece00 <37351410+reece00@users.noreply.github.com>
Co-authored-by: Tashvik Srivastava <tashvik.12112279@lpu.in>
fredliang44 added a commit that referenced this pull request Dec 31, 2023
* fix: remove the content-encoding header

* fix: remove the content-encoding header

* Update api.ts to set proper header "Accept"

So it can work fine for some GPT forward service.

* Chore [Package] Downgrade Tauri Builder Version (#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* Release 2.10.1: Support Google Gemini Pro model (#3668)

* chore: update auth value logic

* chore: bump version 2.10.1

* chore(docs): update readme for Gemini Pro (#3685)

* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>

* feat: support vercel speed insight (#3686)

* Non -GPT model disable system prompt (#3684)

* feat: support streaming for Gemini Pro (#3688)

* feat: support streaming for Gemini Pro

* feat: display texts smoothly

* chore: remove comments

* update readme (#3715)

* feat: update new logo & cover image (#3716)

* fix: update google url description (#3719)

* feat: update new logo & cover image

* fix: update google url description

---------

Co-authored-by: akira-cn <akira.cn@gmail.com>
Co-authored-by: Rocky <40670362@qq.com>
Co-authored-by: Yifei Zhang <yidadaa@qq.com>
Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Co-authored-by: reece00 <37351410+reece00@users.noreply.github.com>
Co-authored-by: Tashvik Srivastava <tashvik.12112279@lpu.in>
yangchuang added a commit to yangchuang/ChatGPT-Next-Web that referenced this pull request Jan 2, 2024
* 'main' of https://github.com/yangchuang/ChatGPT-Next-Web: (75 commits)
  chore: low the google safety setting to avoid unexpected blocking
  fix: fix gemini pro streaming api duplicated issue (ChatGPTNextWeb#3721)
  fix: update google url description (ChatGPTNextWeb#3719)
  feat: update new logo & cover image (ChatGPTNextWeb#3716)
  update readme (ChatGPTNextWeb#3715)
  feat: support streaming for Gemini Pro (ChatGPTNextWeb#3688)
  Non -GPT model disable system prompt (ChatGPTNextWeb#3684)
  feat: support vercel speed insight (ChatGPTNextWeb#3686)
  chore(docs): update readme for Gemini Pro (ChatGPTNextWeb#3685)
  Release 2.10.1: Support Google Gemini Pro model (ChatGPTNextWeb#3668)
  Chore [Package] Downgrade Tauri Builder Version (ChatGPTNextWeb#3656)
  Update CN web app link in README.md
  Update Web App link in README.md
  Fix [UI/UX] [Emoji] emoji URL (ChatGPTNextWeb#3647)
  chore: update auth value logic (ChatGPTNextWeb#3630)
  fix: return bearer header when using openai
  fix: fix removing bearer header
  fix: fix using different model
  chore: auto concat messages
  chore: remove console log
  ...
JMcn pushed a commit to JMcn/ChatGPT-Next-Web that referenced this pull request Jan 3, 2024
- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
JMcn pushed a commit to JMcn/ChatGPT-Next-Web that referenced this pull request Jan 3, 2024
* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (ChatGPTNextWeb#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
jz1248 pushed a commit to jz1248/ChatGPT-Next-Web that referenced this pull request Jan 7, 2024
- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
jz1248 pushed a commit to jz1248/ChatGPT-Next-Web that referenced this pull request Jan 7, 2024
* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (ChatGPTNextWeb#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
abrahamgreyson pushed a commit to abrahamgreyson/gpt-web that referenced this pull request Jan 12, 2024
- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
abrahamgreyson pushed a commit to abrahamgreyson/gpt-web that referenced this pull request Jan 12, 2024
* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (ChatGPTNextWeb#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
spongeBor pushed a commit to spongeBor/ChatGPT-Next-Web that referenced this pull request Jan 18, 2024
- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
spongeBor pushed a commit to spongeBor/ChatGPT-Next-Web that referenced this pull request Jan 18, 2024
* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (ChatGPTNextWeb#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
lovelytan pushed a commit to lovelytan/ChatGPT-Next-Web that referenced this pull request Feb 1, 2024
- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
lovelytan pushed a commit to lovelytan/ChatGPT-Next-Web that referenced this pull request Feb 1, 2024
* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (ChatGPTNextWeb#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this pull request May 16, 2024
- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this pull request May 16, 2024
* chore: update auth value logic

* chore: bump version 2.10.1

* Chore [Package] Downgrade Tauri Builder Version (ChatGPTNextWeb#3656)

- [+] chore(package.json): update @tauri-apps/cli devDependency to version 1.5.7
- [+] chore(yarn.lock): update @tauri-apps/cli versions to 1.5.7

* chore: update README.md

---------

Co-authored-by: H0llyW00dzZ <priv8@btz.pm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants