mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 13:07:58 +00:00
Linux support, updated documentation
This commit is contained in:
parent
1ed8ca371b
commit
b18917ebb4
1
.github/docs-badge.svg
vendored
Normal file
1
.github/docs-badge.svg
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="93" height="20" role="img" aria-label="documentation"><title>documentation</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="93" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="0" height="20" fill="#007ec6"/><rect x="0" width="93" height="20" fill="#007ec6"/><rect width="93" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="465" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="830">documentation</text><text x="465" y="140" transform="scale(.1)" fill="#fff" textLength="830">documentation</text></g></svg>
|
After Width: | Height: | Size: 939 B |
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform: [windows-2022, macos-12]
|
platform: [windows-2022, macos-12, ubuntu-22.04]
|
||||||
go-version: [1.18]
|
go-version: [1.18]
|
||||||
node-version: [16]
|
node-version: [16]
|
||||||
|
|
||||||
@ -45,6 +45,11 @@ jobs:
|
|||||||
- name: Build Rolens
|
- name: Build Rolens
|
||||||
run: wails build
|
run: wails build
|
||||||
|
|
||||||
|
upload-artifact:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
|
||||||
|
steps:
|
||||||
- name: Upload binary
|
- name: Upload binary
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
42
INSTALL.md
Normal file
42
INSTALL.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Installation procedure
|
||||||
|
|
||||||
|
## System requirements
|
||||||
|
|
||||||
|
Rolens can run on the following operating systems:
|
||||||
|
|
||||||
|
* Windows 10/11 amd64/arm64
|
||||||
|
* Linux amd64/arm64
|
||||||
|
* macOS 10.13+ amd64 (Intel)
|
||||||
|
* macOS 11.0+ arm64 (Apple Silicon)
|
||||||
|
|
||||||
|
## Pre-compiled binaries
|
||||||
|
|
||||||
|
You can obtain a pre-compiled Rolens binary for macOS or installer for Windows from the [release page](https://github.com/garraflavatra/rolens/releases/latest).
|
||||||
|
|
||||||
|
## From source
|
||||||
|
|
||||||
|
Rolens is open-source software, which means that you can compile it from source on your own machine by cloning [the repository](https://github.com/garraflavatra/rolens).
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
Rolens is written in Go, so you should download the Go compiler from [the download page](https://go.dev/dl/). The minimum version required is 1.18. You can confirm whether it's installed correctly by running `go version` and checking that it outputs something similar to `go1.18.2`.
|
||||||
|
|
||||||
|
Furthermore, you need to have [Wails ^3.1](https://wails.io/docs/gettingstarted/installation) installed: `go install github.com/wailsapp/wails/v2/cmd/wails@latest`. Wails may have platform-specific dependencies; you can consult `wails doctor` to find out what dependencies Wails needs and how to install them.
|
||||||
|
|
||||||
|
In order to compile the frontend, [Node.js](https://nodejs.org/en/download) ^16.0 and the [npm](https://npmjs.com) package manager ^8.0 (included in Node.js) are required. To confirm the installed versions of those tools, execute `node -v` and `npm -v`.
|
||||||
|
|
||||||
|
### Download source
|
||||||
|
|
||||||
|
To obtain a copy of the source code, do either of the following:
|
||||||
|
|
||||||
|
* Download a tarball or zip archive from the [release page](https://github.com/garraflavatra/rolens/releases/latest). Make sure you download the source archive, and not a pre-compiled binary.
|
||||||
|
* Or clone [the Git repository](https://github.com/garraflavatra/rolens): `git clone https://github.com/garraflavatra/rolens.git`.
|
||||||
|
|
||||||
|
### Compile
|
||||||
|
|
||||||
|
`cd` into the root directory of the source code and run either:
|
||||||
|
|
||||||
|
* `wails build` to generate an executable for your platform.
|
||||||
|
* `wails build -nsis` to generate an [NSIS installer](https://nsis.sourceforge.io/Main_Page). This requires that you have NSIS installed on your machine.
|
||||||
|
|
||||||
|
The generated binary will live in `build/bin`. You may want to run the installer (Windows) or move the app to the Applications folder (Mac).
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Robust, blazing-fast, comprehensive, yet simple [MongoDB](https://www.mongodb.com/) administration tool for Windows, macOS and Linux.
|
Robust, blazing-fast, comprehensive, yet simple [MongoDB](https://www.mongodb.com/) administration tool for Windows, macOS and Linux.
|
||||||
|
|
||||||
[![CI](https://github.com/garraflavatra/rolens/actions/workflows/ci.yml/badge.svg)](https://github.com/garraflavatra/rolens/actions/workflows/ci.yml)
|
[![CI](https://github.com/garraflavatra/rolens/actions/workflows/ci.yml/badge.svg)](https://github.com/garraflavatra/rolens/actions/workflows/ci.yml) [![Documentation](./.github/docs-badge.svg)](https://garraflavatra.github.io/rolens)
|
||||||
|
|
||||||
## Why another MongoDB client?
|
## Why another MongoDB client?
|
||||||
|
|
||||||
|
@ -3,43 +3,4 @@ title: Installation
|
|||||||
order: 20
|
order: 20
|
||||||
---
|
---
|
||||||
|
|
||||||
## System requirements
|
{% filecontent "../INSTALL.md", 2 %}
|
||||||
|
|
||||||
Rolens can run on the following operating systems:
|
|
||||||
|
|
||||||
* Windows 10/11 amd64/arm64
|
|
||||||
* Linux amd64/arm64
|
|
||||||
* macOS 10.13+ amd64 (Intel)
|
|
||||||
* macOS 11.0+ arm64 (Apple Silicon)
|
|
||||||
|
|
||||||
## Pre-compiled binaries
|
|
||||||
|
|
||||||
You can obtain a pre-compiled Rolens binary for macOS or installer for Windows from the [release page](https://github.com/garraflavatra/rolens/releases/latest).
|
|
||||||
|
|
||||||
## From source
|
|
||||||
|
|
||||||
Rolens is open-source software, which means that you can compile it from source on your own machine by cloning [the repository](https://github.com/garraflavatra/rolens).
|
|
||||||
|
|
||||||
### Prerequisites
|
|
||||||
|
|
||||||
Rolens is written in Go, so you should download the Go compiler from [the download page](https://go.dev/dl/). The minimum version required is 1.18. You can confirm whether it's installed correctly by running `go version` and checking that it outputs something similar to `go1.18.2`.
|
|
||||||
|
|
||||||
Furthermore, you need to have [Wails ^3.1](https://wails.io/docs/gettingstarted/installation) installed: `go install github.com/wailsapp/wails/v2/cmd/wails@latest`.
|
|
||||||
|
|
||||||
In order to compile the frontend, [Node.js](https://nodejs.org/en/download) ^16.0 and the [npm](https://npmjs.com) package manager ^8.0 (included in Node.js) are required. To confirm the installed versions of those tools, execute `node -v` and `npm -v`.
|
|
||||||
|
|
||||||
### Download source
|
|
||||||
|
|
||||||
To obtain a copy of the source code, do either of the following:
|
|
||||||
|
|
||||||
* Download a tarball or zip archive from the [release page](https://github.com/garraflavatra/rolens/releases/latest). Make sure you download the source archive, and not a pre-compiled binary.
|
|
||||||
* Or clone [the Git repository](https://github.com/garraflavatra/rolens): `git clone https://github.com/garraflavatra/rolens.git`.
|
|
||||||
|
|
||||||
### Compile
|
|
||||||
|
|
||||||
`cd` into the root directory of the source code and run either:
|
|
||||||
|
|
||||||
* `wails build` to generate an executable for your platform.
|
|
||||||
* `wails build -nsis` to generate an [NSIS installer](https://nsis.sourceforge.io/Main_Page). This requires that you have NSIS installed on your machine.
|
|
||||||
|
|
||||||
The generated binary will live in `build/bin`. You may want to run the installer (Windows) or move the app to the Applications folder (Mac).
|
|
||||||
|
9
internal/ui/open_linux.go
Normal file
9
internal/ui/open_linux.go
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
//go:build linux
|
||||||
|
|
||||||
|
package ui
|
||||||
|
|
||||||
|
import "os/exec"
|
||||||
|
|
||||||
|
func reveal(fname string) {
|
||||||
|
exec.Command("xdg-open", fname).Run()
|
||||||
|
}
|
@ -90,9 +90,10 @@ module.exports = function (eleventyConfig) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Retrieve content of a file
|
// Retrieve content of a file
|
||||||
eleventyConfig.addFilter('filecontent', function (fname) {
|
eleventyConfig.addShortcode('filecontent', function (fname, startLine = 0) {
|
||||||
const buf = fs.readFileSync(path.join(indir, fname));
|
const buf = fs.readFileSync(path.join(indir, fname));
|
||||||
return buf.toString();
|
const str = buf.toString().split('\n').slice(startLine).join('\n');
|
||||||
|
return str;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Global options
|
// Global options
|
||||||
|
Loading…
Reference in New Issue
Block a user