Skip to content

Commit

Permalink
add launcher script when installed with npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
bkanuka committed Jul 26, 2020
1 parent 485fcff commit 968f5b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env electron

const { app, BrowserWindow, session, Menu, dialog, Tray, remote, ipcMain, nativeImage, Notification, shell, clipboard } = require('electron');
const { autoUpdater } = require("electron-updater");
const { Client } = require('./WhatsBot/index');
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"start": "electron .",
"dist": "rm -r dist && electron-builder --dir && cp /usr/lib/x86_64-linux-gnu/libXtst.so.6 dist/linux-unpacked/ && cp /usr/lib/x86_64-linux-gnu/libXss.so.1 dist/linux-unpacked/ && electron-builder --prepackaged dist/linux-unpacked"
},
"bin": {
"walc": "main.js"
},
"repository": {
"type": "git",
"url": "/~https://github.com/cstayyab/WALC.git"
Expand Down

0 comments on commit 968f5b2

Please sign in to comment.