mirror of https://github.com/veypi/OneAuth.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
562 B
Makefile
24 lines
562 B
Makefile
#
|
|
# Makefile
|
|
# Copyright (C) 2022 veypi <i@veypi.com>
|
|
# 2022-07-16 23:43
|
|
# Distributed under terms of the Apache license.
|
|
#
|
|
|
|
run:
|
|
@cargo run
|
|
init:
|
|
@cargo run -- init
|
|
|
|
sqlx:
|
|
@sqlx migrate run
|
|
|
|
entity:
|
|
@sea-orm-cli generate entity --database-url mysql://root:123456@localhost:3306/oneauth -o ./src/models/entity/ --with-serde both --model-extra-derives Default,sqlx::FromRow --serde-skip-hidden-column --date-time-crate chrono
|
|
|
|
# install_target:
|
|
# @rustup target add x86_64-unknown-linux-gnu
|
|
|
|
build_linux:
|
|
@cargo build --release --target-dir ./target/linux/
|