Merge pull request #391 from straight-shoota/feat/portability

Make postinstall portable
This commit is contained in:
Sijawusz Pur Rahnama 2023-07-16 20:42:37 +02:00 committed by GitHub
commit 8c9d234d0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -30,9 +30,5 @@ bin: build
mkdir -p $(SHARD_BIN)
cp ./bin/ameba $(SHARD_BIN)
.PHONY: run_file
run_file:
cp -n ./bin/ameba.cr $(SHARD_BIN) || true
.PHONY: test
test: spec lint

View file

@ -10,10 +10,11 @@ targets:
scripts:
# TODO: remove pre-compiled executable in future releases
postinstall: make bin && make run_file
postinstall: shards build -Dpreview_mt
executables:
- ameba
- ameba.cr
crystal: "~> 1.7.0"