mirror of
https://github.com/rancher-sandbox/rancher-desktop.git
synced 2021-10-13 00:04:06 +03:00
130c2cdece756ac074e72bd40d9cc497085d3d38
Signed-off-by: Mark Yen <mark.yen@suse.com>
RD
Note: RD only works on mac at the moment.
This is in pre-alpha and needs to be run using developer tools.
Prerequisites
-
Be on macos (note, expansion to other operating systems is planned)
-
Node.js
-
The following pre-requisites are needed by the vue testing framework.
-
macos:
brew install pkg-config cairo pango libpng jpeg giflib librsvg
- ubuntu:
sudo apt-get install -y libcairo2-dev libpango1.0-dev libpng-dev libjpeg-dev libgif-dev librsvg2-dev
Windows
Experimental Windows support is in development.
Quick Start
- Download a Microsoft Windows 10 development virtual machine.
- Open a privileged PowerShell prompt (hit Windows Key +
Xand openWindows PowerShell (Admin)). - Run the automated setup script:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser iwr -useb 'https://github.com/rancher-sandbox/rd/raw/main/scripts/windows-setup.ps1' | iex - Close the privileged PowerShell prompt.
You are now ready to clone the repository and run npm install.
Manual Development Environment Setup
- Download and install Visual Studio, taking care to install:
- MSVC v141 - VS 2017 C++ x64/x86 build tools (v14.16)
- MSVC v142 - VS 2019 C++ x64/x86 build tools (Latest)
- Download the GTK+ Win64 bundle; it is recommended to install it in the
default location at
C:\GTK. - Download the libjpeg-turbo development files; it is recommended to install
it in the default location at
C:\libjpeg-turbo64. - Install git, Python 2.x, and NodeJS.
- Install Scoop via
iwr -useb get.scoop.sh | iex - Install git and nvm via
scoop install git nvm - Add the old versions bucket via
scoop bucket add versions - Install nvm and Python 2 via
scoop install python27 - Install NodeJS via
nvm install latest- Remember to use it by running
nvm use $(nvm list)
- Remember to use it by running
- Install Scoop via
- Configure NPM to use the version of MSBuild installed:
Note that this is the default path; the path on your system may differ.
npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"
If you have customized the GTK and libjpeg paths, you will need to run
npm install with the GYP_DEFINES variable set to point to them. In
PowerShell, this would look something like:
$Env:GYP_DEFINES = 'GTK_Root="C:/Path/To/GTK" jpeg_root="C:/Path/To/libjpeg"'
How To Run
Use the following commands. The former is needed the first time or after an update is pulled from upstream. The latter is needed for follow-up starts.
npm install
npm run dev
Description
Languages
TypeScript
36.3%
JavaScript
22.1%
Vue
16.3%
SCSS
10.2%
HTML
6.7%
Other
8.3%