Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make postinstall portable #391

Merged
merged 3 commits into from
Jul 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down