Skip to content

Latest commit

 

History

History
88 lines (61 loc) · 1.99 KB

README.md

File metadata and controls

88 lines (61 loc) · 1.99 KB

Building

macOS

Note

Require macOS 10.15+, x86_64 and arm64 arch are tested.

  1. Create a python environment.

  2. Install requirements.

    pip install -r requirements.txt
    pip install -r requirements-dev.txt
  3. Update the translations.

    # Generate translations source of QML files.
    lupdate SciHubEVA.pro
    
    # Generate translations source of Python files.
    pyside6-lupdate \
      scihub_eva/api/*.py \
      scihub_eva/ui/*.py \
      -ts i18n/SciHubEVA_zh_CN.ts
    
    # Do translations manually.
  4. Install create-dmg.

    brew install create-dmg
  5. Build and package.

    ./building/build_macos.sh ${arch}

    SciHubEVA-${arch}-latest.dmg will be in dist-macOS-${arch}.

Windows

Note

Require Windows 10+, x86_64 arch is tested.

  1. See step 1 in macOS.

  2. See step 2 in macOS.

  3. See step 3 in macOS.

  4. Install Inno Setup and make sure ISCC.exe is in your PATH.

  5. Build and package.

    ./building/build_windows.ps1 ${arch}

    SciHubEVA-${arch}-latest.exe will be in dist-Windows-${arch}.

Linux

Note

Require Ubuntu 20.04+, x86_64 arch is tested.

  1. See step 1 in macOS.

  2. See step 2 in macOS.

  3. See step 3 in macOS.

  4. Install system packages.

    sudo apt install -y librsvg2-bin libfuse2 libgl1-mesa-dev libxcb* libxau-dev liblzma-dev libegl-dev
  5. Install appimagetool and make sure appimagetool-x86_64.AppImage is in your PATH.

    curl -O https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage ~/.local/bin/appimagetool-x86_64.AppImage
  6. Build and package.

    ./building/build_linux.sh ${arch}

    SciHubEVA-${arch}-latest.AppImage will be in dist-Linux-${arch}.