Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
use electron-packager
Browse files Browse the repository at this point in the history
  • Loading branch information
krydos committed Apr 22, 2018
1 parent e6bdee8 commit 6d71528
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
package-lock.json
todoist-linux
todoist-linux
Todoist-linux-x64
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
ELECTRON_FOLDER=todoist-linux
PATHTOPACK=./$(ELECTRON_FOLDER)/resources/app
BUILD_DIR=Todoist-linux-x64

.PHONY: up
up:
cd src && npm start

.PHONY: package
package:
mkdir -p $(PATHTOPACK) && \
cp -r src/* $(PATHTOPACK) && \
cp todoist $(ELECTRON_FOLDER)
./src/node_modules/.bin/electron-packager src Todoist --platform=linux --arch=x64 --version-string.FileDescription=todoist --overwrite

.PHONY: release
release:
zip -r todoist-linux.zip $(ELECTRON_FOLDER)
zip -r todoist-linux.zip $(BUILD_DIR)

.PHONY: up-package
up-package:
./$(ELECTRON_FOLDER)/todoist
./$(BUILD_DIR)/Todoist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Installation
* Go to [Releases tab](https://github.com/KryDos/todoist-linux/releases) or [Click here](https://dl.dropboxusercontent.com/s/jzi5g7narop1e83/todoist-linux.zip?dl=0) to start download the latest version
* Choose the one you like (the top one is the latest). `todoist-linux.zip` - is the file you need.
* Just download the archive and unpack it to any place you wish
* Run `todoist` script
* Run `Todoist` script

If you wish to add icon to your Gnome3/Cinnamon/Mate menu you can
use `todoist.desktop` file, here in repo. Just replace `<path>` with absolute path
Expand Down
2 changes: 1 addition & 1 deletion todoist.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Version=1.0
Name=Todoist
Comment=Todoist productivity app
Exec=/<path>/todoist
Exec=/<path>/Todoist
Path=/<path>
Icon=/<path>/resources/icons/icon.png
Terminal=false
Expand Down

0 comments on commit 6d71528

Please sign in to comment.