Browse Source

removed standalone building process, cause it didn't work as expected

master
Sebastian 3 years ago
parent
commit
e078eff086
Signed by: imo GPG Key ID: AFA10CBFE4391C0C
  1. 31
      .drone.yml
  2. 4
      README.md

31
.drone.yml

@ -8,34 +8,3 @@ pipeline:
commands:
- luarocks install luacheck
- luacheck src/
build:
image: imo/luarocks5.3:latest
commands:
- apk add git gzip
- luarocks install lua-cjson 2.1.0-1
- luarocks install lua-requests
- luarocks install lpath
- luarocks install emoji-downloader-scm-0.rockspec
- luarocks install https://raw.githubusercontent.com/siffiejoe/lua-amalg/master/amalg-scm-0.rockspec
- mkdir build
- lua -lamalg emoji-downloader.lua
- amalg.lua -o build/emoji-downloader -s emoji-downloader.lua -c -x
- gzip build/emoji-downloader
when:
status: success
event: tag
release:
image: plugins/gitea-release
base_url: https://git.kokolor.es
secrets: [ gitea_token ]
files:
- build/emoji-downloader.gz
checksum:
- md5
- sha1
- sha256
when:
status: success
event: tag

4
README.md

@ -26,10 +26,6 @@ But you can also clone this git, install the dependencies listed above using [lu
luarocks install lua-requests
```
### Using standalone version
I created a standalone version of the script, using [amalg](https://github.com/siffiejoe/lua-amalg), where all used modules packed into one file. So you only need the lua5.3 interpreter to run the script. You can find it under [Releases](https://git.kokolor.es/imo/emoji-downloader/releases).
## Usage
If installed directly with **luarocks** use it like this: