Skip to content

Commit 491e13d

Browse files
committed
fix(snapcraft): fixed snapcraft build script
1 parent 8bf5d1e commit 491e13d

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@perryrh0dan/taskline",
33
"productName": "Taskline",
4-
"version": "1.3.4",
4+
"version": "1.4.0",
55
"description": "Tasks, boards & notes for the command-line habitat",
66
"repository": "https://github.com/perryrh0dan/taskline",
77
"license": "MIT",

readme.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Come over to [Gitter](https://gitter.im/taskline/community?source=orgpage) or [T
7474
- Possibility to cancel tasks
7575
- Possibility to rearrange item ids
7676
- Timetracking for tasks
77+
- Multilanguage support
7778

7879
### Coming
7980

@@ -602,7 +603,18 @@ Run the build script from '/scripts/build.sh'
602603

603604
### Publish
604605

605-
After
606+
#### Npm
607+
608+
100% automated;
609+
610+
#### Snapcraft
611+
612+
``` bash
613+
snapcraft login
614+
615+
snapcraft push --release=stable taskline_1.3.4_multi.snap
616+
```
617+
606618

607619
## Team
608620

snapcraft.sh renamed to scripts/snapcraft.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22
set -e #stop on error
3+
echo 'Build Snap Package...'
34

45
# Check if temp already exists if yes delete
5-
bash -c '[ -d temp ] && rm -r temp'
6+
if [ -d temp ]; then rm -r temp; fi;
67

78
# Creating a temp directory for the build and navigate in
89
echo 'Creating temp directory'
@@ -57,7 +58,8 @@ rm ./gulpfile.js
5758

5859
# Build Snap
5960
echo 'Build snap'
60-
sudo snapcraft cleanbuild
61+
sudo snapcraft clean
62+
sudo snapcraft
6163

6264
# Copy snap to main directory
6365
echo 'Copy snap to main directory'
@@ -68,5 +70,5 @@ find ./ -iname '*.snap' -exec cp {} ../ \;
6870
# Navigate out and delete temp directory
6971
echo 'Delete temp directory'
7072
cd ..
71-
sudo rm -r ./temp
73+
# sudo rm -r ./temp
7274

snapcraft.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: taskline
2-
version: '1.3.4'
2+
version: '1.4.0'
33
summary: Tasks, boards & notes for the command-line habitat
44
description: |
55
By utilizing a simple and minimal usage syntax, that requires a flat learning curve, Taskline enables you
@@ -42,6 +42,13 @@ architectures:
4242
- amd64
4343
- i386
4444

45+
parts:
46+
taskline:
47+
plugin: nodejs
48+
nodejs-version: 12.16.1
49+
nodejs-package-manager: npm
50+
source: .
51+
4552
apps:
4653
taskline:
4754
command: tl
@@ -50,10 +57,3 @@ apps:
5057
- network
5158
- network-control
5259
- x11
53-
54-
parts:
55-
taskline:
56-
plugin: nodejs
57-
node-engine: 12.16.1
58-
node-package-manager: npm
59-
source: .

0 commit comments

Comments
 (0)