-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
396481c
commit 924eafd
Showing
8 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
SENTRY_DSN=https://[email protected]/1468974 | ||
WEB_DEMO_MODE=false | ||
GA_TRACKING_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ thumbs.db | |
!.gitkeep | ||
sentry.properties | ||
.env | ||
.env.production | ||
__diff_output__ | ||
cypress/screenshots | ||
cypress/videos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
</a> | ||
</p> | ||
|
||
[Official Site](https://kube-forwarder.pixelpoint.io) | ||
|
||
Easy to use Kubernetes port forwarding management. | ||
Built with [Electron](https://electronjs.org) | ||
|
||
|
@@ -56,6 +58,10 @@ git clone https://github.com/<your-username>/kube-forwarder | |
# install dependencies | ||
npm install | ||
# prepare .env files | ||
cp .env.example .env | ||
cp .env.example .env.production | ||
# serve with hot reload in Electron Dev app | ||
npm run dev | ||
|
@@ -109,12 +115,13 @@ npm run test:cypress:open | |
|
||
## Release guide | ||
|
||
1) Update the version in `package.json`. | ||
2) Push to `release` branch. [Drone(pixel-point/kube-forwarder)](https://drone.pixelpoint.io/pixel-point/kube-forwarder/) | ||
1) Be sure that you created `.env.production` and filled it in the right way. | ||
2) Update the version in `package.json`. | ||
3) Push to `release` branch. [Drone(pixel-point/kube-forwarder)](https://drone.pixelpoint.io/pixel-point/kube-forwarder/) | ||
will build packages for Windows and Linux and upload them to [releases](https://github.com/pixel-point/kube-forwarder/releases) | ||
3) Run `npm run release` on a Mac computer to build `.dmg` target. | ||
4) Run `npm run release` on a Mac computer to build `.dmg` target. | ||
It will be automatically pushed to releases at Github. | ||
4) Go to [Releases](https://github.com/pixel-point/kube-forwarder/releases) in the repository. | ||
5) Go to [Releases](https://github.com/pixel-point/kube-forwarder/releases) in the repository. | ||
Make sure that the created draft is OK and release it (Edit -> Release). | ||
|
||
Notes: | ||
|
@@ -123,7 +130,7 @@ Notes: | |
2) A release tag (for example: `v1.0.3`) will be added automatically | ||
by Github when you release your draft. | ||
|
||
## Tips | ||
## Development Tips | ||
|
||
Use `tiffutil -cathidpicheck bg.png [email protected] -out bg.tiff` to build a tiff | ||
background for .DMG | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const dotEnv = require('dotenv-safe') | ||
if (!process.env.CI) dotEnv.load() | ||
dotEnv.load({ path: '.env.production', allowEmptyValues: true }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Analytics from 'electron-ga' | ||
|
||
export default new Analytics(process.env.GA_TRACKING_ID) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters