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

Distributives & installers #68

Open
8 of 26 tasks
dr-orlovsky opened this issue Apr 22, 2023 · 5 comments
Open
8 of 26 tasks

Distributives & installers #68

dr-orlovsky opened this issue Apr 22, 2023 · 5 comments
Labels
C-epic Epic tasks C-important Important issue install Installation & build-related issues OS-linux OS-macos OS-windows
Milestone

Comments

@dr-orlovsky
Copy link
Member

dr-orlovsky commented Apr 22, 2023

This is an issue tracking ongoing work on providing more user-friendly distributives and installation options on different platforms.

  • Write installation instructions (written)

Linux

macOS

We can't get to AppStore with GTK version, however pay attention that a separate native MyCitadel application (made with SwiftUI) for all Apple platforms exists which can be run on macOS and is planned to be published to Mac App Store. Right now it is outdated, but we are working on the new version.

  • Brew formula & add to brew repository
    • Do hwi brew formula and use it as a dependency
  • SnapStore (one day when it will be working)

Windows 10 and 11

  • MSI installer
  • Windows (App) Store
  • Some package manager? Choco? Winget? Have no experience here, any help is welcome.

No support is planed for versions before Win10.

Cross-platform source code

(Not user-friendly)

@dr-orlovsky dr-orlovsky added C-epic Epic tasks C-important Important issue OS-windows OS-linux OS-macos install Installation & build-related issues labels Apr 22, 2023
@dr-orlovsky dr-orlovsky added this to the Estival Solstice (v2) milestone Apr 22, 2023
@dr-orlovsky dr-orlovsky self-assigned this Apr 22, 2023
@dr-orlovsky dr-orlovsky pinned this issue Apr 22, 2023
@dr-orlovsky dr-orlovsky removed their assignment Apr 22, 2023
@fczuardi
Copy link
Contributor

fczuardi commented May 4, 2023

nix build on the tip of master branch fails with this error:

error: builder for '/nix/store/n2ccqmhmic3ly875jgzwzmi9wdjv3grl-mycitadel-deps-1.3.0.drv' failed with exit code 101;
       last 10 log lines:
       > configuring
       > will append /build/dummy-src/.cargo-home/config.toml with contents of /nix/store/n874yvrhmdasskw7pll7xni82mqwi147-vendor-cargo-deps/config.toml
       > no configure script, doing nothing
       > setting CARGO_BUILD_RUSTFLAGS to "--remap-path-prefix /nix/store/n874yvrhmdasskw7pll7xni82mqwi147-vendor-cargo-deps=/sources"
       > building
       > cargo 1.60.0 (d1fd9fe 2022-03-01)
       > running: cargo check --workspace --release --all-targets
       > cargo build --workspace --release
       >
       > error: package `bitcoin_hd v0.10.0` cannot be built because it requires rustc 1.65.0 or newer, while the currently active rustc version is 1.60.0
       For full logs, run 'nix log /nix/store/n2ccqmhmic3ly875jgzwzmi9wdjv3grl-mycitadel-deps-1.3.0.drv'.
error: 1 dependencies of derivation '/nix/store/r0y9v4aib4mf2rn1vaxdf3zyqxi0zy1i-mycitadel-1.3.0.drv' failed to buil

@fczuardi
Copy link
Contributor

fczuardi commented May 4, 2023

updating the flake.lock with a nix flake update fixed the error above, but then it misses a python3 interpreter to build:

$ nix build
warning: Git tree '/home/fcz/github/mycitadel-desktop' is dirty
error: builder for '/nix/store/c9v9badwkjfwnhvzkh9fa6m7c4jk0yhs-mycitadel-deps-1.3.0.drv' failed with exit code 101;
       last 10 log lines:
       >   --- stdout
       >   cargo:rerun-if-env-changed=PYO3_CONFIG_FILE
       >   cargo:rerun-if-env-changed=PYO3_PYTHON
       >   cargo:rerun-if-env-changed=VIRTUAL_ENV
       >   cargo:rerun-if-env-changed=CONDA_PREFIX
       >   cargo:rerun-if-env-changed=PATH
       >
       >   --- stderr
       >   error: no Python 3.x interpreter found
       > warning: build failed, waiting for other jobs to finish...
       For full logs, run 'nix log /nix/store/c9v9badwkjfwnhvzkh9fa6m7c4jk0yhs-mycitadel-deps-1.3.0.drv'.
error: 1 dependencies of derivation '/nix/store/sfg7ypjh3w90vajhzsqkf0k47f2hypbb-mycitadel-1.3.0.drv' failed to build

@fczuardi
Copy link
Contributor

fczuardi commented May 4, 2023

adding pkgs.python311 to this list fixed the build!

I can open a PR with both updates...

@fczuardi
Copy link
Contributor

fczuardi commented May 4, 2023

After building there is still a runtime error when clicking on UI menus, something related to GSettings No GSettings schemas are installed on the system:

(mycitadel:276912): GLib-GIO-ERROR **: 10:24:14.637: No GSettings schemas are installed on the system

What seem to fix that is to include the dependency: wrapGAppsHook. (I have updated the PR to include it now)

And on the machine (nixOS in my case) enable dconf with programs.dconf.enable = true;

@dr-orlovsky
Copy link
Member Author

@fczuardi thank you for investigating and doing the PR! Replied you there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-epic Epic tasks C-important Important issue install Installation & build-related issues OS-linux OS-macos OS-windows
Projects
None yet
Development

No branches or pull requests

2 participants