This commit is contained in:
MrBesen 2022-03-14 16:53:20 +01:00
commit 89a2558f1b
3 changed files with 51 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.snap

16
Readme.md Normal file
View File

@ -0,0 +1,16 @@
# TicTacToebot Snap
Build with:
```
snapcraft
```
Install with:
```
snap install --devmode *.snap
```
Run with:
```
snap run tictactoebot
```

34
snapcraft.yaml Normal file
View File

@ -0,0 +1,34 @@
name: tictactoebot
version: "1.0.0"
summary: Tictactoebot
description: |
A Telegrambot to play tictactoe in Telegram Groupchats
confinement: devmode
base: core18
parts:
tictactoebot:
plugin: make
source-type: git
source: https://git.mrbesen.de/MrBesen/tictactoebot.git
source-branch: master
artifacts:
- tictactoebot
makefile: Makefile
build-packages:
- g++
- make
- libcurl4-openssl-dev
stage-packages:
- libcurl4
override-build: |
git clone --depth=1 --branch=v3.7.3 https://github.com/nlohmann/json.git
ln -sr json/include/nlohmann TAPI/include
make -j4
cp -l tictactoebot $SNAPCRAFT_PART_INSTALL/tictactoebot
apps:
tictactoebot:
command: tictactoebot