Skip to content

Commit 0dd3f2e

Browse files
author
Lab-OsintItalia
committed
added snapcraft and bin folder
1 parent aad862b commit 0dd3f2e

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

bin/maigret

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env python3
2+
import asyncio
3+
import sys
4+
5+
from maigret.maigret import main
6+
7+
8+
def run():
9+
try:
10+
loop = asyncio.get_event_loop()
11+
loop.run_until_complete(main())
12+
except KeyboardInterrupt:
13+
print('Maigret is interrupted.')
14+
sys.exit(1)
15+
16+
17+
if __name__ == "__main__":
18+
run()

snapcraft.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: maigret
2+
version: git
3+
summary: v
4+
description: |
5+
Test Test Test
6+
base: core18
7+
confinement: strict
8+
9+
10+
parts:
11+
maigret:
12+
plugin: python
13+
python-version: python3
14+
source: .
15+
stage-packages:
16+
- python-six
17+
18+
19+
apps:
20+
maigret:
21+
command: bin/maigret
22+
23+
24+
architectures:
25+
- build-on: amd64
26+
- build-on: i386
27+
28+
29+
30+

0 commit comments

Comments
 (0)