Skip to content

[Bug] RPM build output name mismatch #886

Open
@brunofin

Description

@brunofin

Search before asking

  • 我在 issues 列表中搜索,没有找到类似的内容。
    I searched in the issues and found nothing similar.

Pake version

[email protected]

System version

Fedora 41

Node.js version

Node.js v20.14.0

Minimal reproduce step

pake <any url> --name <any name> --hide-title-bar --targets rpm

What did you expect to see?

An RPM file generated in the current directory

What did you see instead?

An error

Anything else?

pake https://www.notion.so --name cohesion-tauri --hide-title-bar --targets rpm
✼ No icon given, default in use. For a custom icon, use --icon option.
✺ Installing package...

up to date, audited 206 packages in 450ms

69 packages are looking for funding
  run `npm fund` for details

✔ Package installed!
pakeConfig {
  windows: [
    {
      url: 'https://www.notion.so',
      url_type: 'web',
      hide_title_bar: true,
      fullscreen: false,
      width: 1200,
      height: 780,
      resizable: true,
      always_on_top: false,
      dark_mode: false,
      activation_shortcut: '',
      disabled_web_shortcuts: false
    }
  ],
  user_agent: {
    macos: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15',
    linux: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
    windows: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'
  },
  system_tray: { macos: false, linux: false, windows: true },
  system_tray_path: '/home/verde/.nvm/versions/node/v20.14.0/lib/node_modules/pake-cli/src-tauri/png/icon_512.png',
  inject: [],
  proxy_url: ''
}
✦ Building app...

> [email protected] build
> npm run tauri build --release
✶ Building app...

> [email protected] tauri
> tauri build
✸ Building app...
    Finished `release` profile [optimized] target(s) in 24.37s
    Built application at: /home/verde/.nvm/versions/node/v20.14.0/lib/node_modules/pake-cli/src-tauri/target/release/pake
    Bundling cohesion-tauri-1.0.0-1.x86_64.rpm (/home/verde/.nvm/versions/node/v20.14.0/lib/node_modules/pake-cli/src-tauri/target/release/bundle/rpm/cohesion-tauri-1.0.0-1.x86_64.rpm)
    Finished 1 bundle at:
        /home/verde/.nvm/versions/node/v20.14.0/lib/node_modules/pake-cli/src-tauri/target/release/bundle/rpm/cohesion-tauri-1.0.0-1.x86_64.rpm

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, lstat '/home/verde/.nvm/versions/node/v20.14.0/lib/node_modules/pake-cli/src-tauri/target/release/bundle/rpm/cohesion-tauri-1.0.0-1.amd64.rpm'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
  path: '/home/verde/.nvm/versions/node/v20.14.0/lib/node_modules/pake-cli/src-tauri/target/release/bundle/rpm/cohesion-tauri-1.0.0-1.amd64.rpm'
}

Node.js v20.14.0

The error indicates that the script is looking for a file with the name <any name>-1.0.0-1.amd64.rpm, but the actual RPM file is named <any name>-1.0.0-1.x86_64.rpm (notice amd64 vs x86_64). This mismatch might be due to a bug in Pake or its CLI tool.

I can verify the file is generated in the temp folder by ls:

ls /home/verde/.nvm/versions/node/v20.14.0/lib/node_modules/pake-cli/src-tauri/target/release/bundle/rpm
cohesion-tauri-1.0.0-1.x86_64  cohesion-tauri-1.0.0-1.x86_64.rpm

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions