Skip to content

Commit

Permalink
Fix imggen
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Mar 11, 2024
1 parent ec232d2 commit b45af22
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
STU_BIN=./target/debug/stu
CMD_DIR=./tool
IMGGEN_DIR=$(CMD_DIR)/imggen
IMGDIFF_DIR=$(CMD_DIR)/imgdiff
OUTPUT_DIR=./dist

$(STU_BIN):
cargo build

.PHONY: demo
demo:
demo: $(STU_BIN)
go run $(IMGGEN_DIR)/*.go generate -tape $(IMGGEN_DIR)/tape/demo.tape -out $(OUTPUT_DIR)/demo

.PHONY: screenshot
screenshot:
screenshot: $(STU_BIN)
go run $(IMGGEN_DIR)/*.go generate -tape $(IMGGEN_DIR)/tape/screenshot.tape -out $(OUTPUT_DIR)/screenshot

.PHONY: test
Expand Down
2 changes: 1 addition & 1 deletion tool/imggen/tape/demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Type "export AWS_ACCESS_KEY_ID=dummy"
Enter
Type "export AWS_SECRET_ACCESS_KEY=dummy"
Enter
Type "cargo run -- --endpoint-url ${ENDPOINT_URL}"
Type "./target/debug/stu --endpoint-url ${ENDPOINT_URL}"
Enter
Sleep 3s

Expand Down
8 changes: 4 additions & 4 deletions tool/imggen/tape/screenshot.tape
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Set Height 600
Set Padding 15
Set BorderRadius 20

Type "export AWS_ACCESS_KEY_ID=dummy"
Type@10ms "export AWS_ACCESS_KEY_ID=dummy"
Enter
Type "export AWS_SECRET_ACCESS_KEY=dummy"
Type@10ms "export AWS_SECRET_ACCESS_KEY=dummy"
Enter
Type "cargo run -- --endpoint-url ${ENDPOINT_URL}"
Type@10ms "./target/debug/stu --endpoint-url ${ENDPOINT_URL}"
Enter
Sleep 1s
Sleep 500ms
Screenshot ${OUTPUT_DIR}/initialize.png
Sleep 2s

Expand Down

0 comments on commit b45af22

Please sign in to comment.