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

[Bug] RPM build output name mismatch #886

Open
1 of 2 tasks
brunofin opened this issue Jan 9, 2025 · 0 comments
Open
1 of 2 tasks

[Bug] RPM build output name mismatch #886

brunofin opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@brunofin
Copy link

brunofin commented Jan 9, 2025

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!
@brunofin brunofin added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant