Skip to content
Merged
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 .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GH_TOKEN =
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ node_modules


# local env files
.env.local
.env.*.local
.env
.env.*
!.env.example

# Log files
npm-debug.log*
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@

## Build for production

`npm run electron:build`
`npm run electron:build`

# Releases

> ⚠️ Every new release published will notify users and update there electron app

## Github token

Create a `.env` file at the root of your local project. Copy the content of `.env.example` and put your [Github token](https://github.com/settings/tokens/new) in.

## Release process
1. Update app version in the `package.json` following the [Semantic Versioning](https://semver.org/) guidelines.
2. Commit and push the app version update on a dedicated branch using this pattern: `"release/: {version_number}"`.
3. When the branch is **ready and merged**, run the following command on the `main` branch: `npm run gh-publish`.
4. A **pre-release** should be created in the github repo and can be release.
141 changes: 132 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
{
"name": "git-view",
"version": "0.1.0",
"version": "0.1.3",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/ecvdbdx/git-view.git"
},
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"electron:build": "vue-cli-service electron:build",
"electron:build": "vue-cli-service electron:build -w -m",
"electron:serve": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps",
"prepare": "husky install",
"test": "jest"
"test": "jest",
"gh-publish": "vue-cli-service electron:build -w -m -p always"
},
"main": "background.js",
"dependencies": {
"@vueuse/core": "^7.5.3",
"core-js": "^3.6.5",
"localforage": "^1.10.0",
"electron-log": "^4.4.4",
"electron-simple-updater": "^2.0.11",
"electron-updater": "^4.6.1",
"update-electron-app": "^2.0.1",
"vue": "^3.0.0",
"vue-router": "^4.0.12"
},
Expand Down
1 change: 0 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'windi.css';

export default {
name: 'App',
components: {},
};
</script>

Expand Down
2 changes: 2 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { app, BrowserWindow, ipcMain, protocol } from 'electron';
import installExtension, { VUEJS3_DEVTOOLS } from 'electron-devtools-installer';
import { autoUpdater } from 'electron-updater';
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib';

import CustomEvents from './events';
Expand Down Expand Up @@ -68,6 +69,7 @@ app.on('ready', async () => {
}
}
createWindow();
autoUpdater.checkForUpdatesAndNotify();
});

// Exit cleanly on request from parent process in development mode.
Expand Down
3 changes: 3 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module.exports = {
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
publish: ['github'],
},
},
},
};