Unverified Commit 5b941c80 authored by loner's avatar loner
Browse files

qwen-code: fix login permission validation

fix: include tiktoken_bg.wasm in build output to resolve runtime error.
parent 0a0ca83a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchFromGitHub,
  nix-update-script,
  jq,
  git,
  ripgrep,
}:

@@ -30,7 +31,10 @@ buildNpmPackage (finalAttrs: {
    jq
  ];

  buildInputs = [ ripgrep ];
  buildInputs = [
    git
    ripgrep
  ];

  postPatch = ''
    # Remove @lvce-editor/ripgrep dependency (no network on buildPhase
@@ -76,6 +80,7 @@ buildNpmPackage (finalAttrs: {

    mkdir -p $out/bin $out/share/qwen-code
    cp -r bundle/* $out/share/qwen-code/
    cp node_modules/tiktoken/tiktoken_bg.wasm $out/share/qwen-code/
    patchShebangs $out/share/qwen-code
    ln -s $out/share/qwen-code/gemini.js $out/bin/qwen