Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
releases
dist
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,40 @@ npm install
```
npm start
```

# How to Build Snap and AppImage on Linux

## 1. Download Electron-Builder

To build the packages we need to install electon-builder.

```
yarn add electron-builder --dev
```

## 2. Build

Download the repository and build. First, clone it.

```
git clone https://github.com/interplanaria/bottle.git
```

Then build the packages

```
cd bottle
npm run dist
```

## 3. Run

To execute the appImage.
```
./dist/Bottle_0.0.4.AppImage
```

To install the Snap.
```
sudo snap install ./dist/Bottle_0.0.4.snap --dangerous
```
26 changes: 23 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "Bottle",
"version": "1.0.0",
"version": "0.0.4",
"description": "",
"main": "index.js",
"scripts": {
"start": "electron ."
"start": "electron .",
"dist": "build"
},
"author": "",
"license": "ISC",
Expand All @@ -17,5 +18,24 @@
"route-parser": "0.0.5",
"timeago.js": "^4.0.0-beta.2"
},
"devDependencies": {}
"devDependencies": {
"electron": "^2.0.0",
"electron-builder": "^20.27.1"
},
"build": {
"appId": "network.bitdb.bottle.torusJKL",
"linux": {
"target": ["snap","appImage"],
"description": "Bottle is a browser that lets you surf the Bitcoin network for these things, and brings them all together through Bitcoin native URI schemes such as B:// or C:// (or any other protocols we add in the future).",
"category": "Network",
"artifactName": "${productName}_${version}.${ext}"
}
},
"snap": {
"grade": "stable",
"confinement": "strict"
},
"appImage": {
"systemIntegration": "ask"
}
}