1
0
mirror of https://github.com/o2sh/onefetch synced 2024-07-02 15:48:51 +00:00
onefetch/Makefile
Ossama Hjaji ac338c85a0
Generate Windows installer from CD (#668)
* add onefetch.ico

* Create windows-installer.iss

* Delete windows-installer.iss

* Create windows-installer.iss

* Update cd.yml

* Update Makefile

* Update windows-installer.iss

* Update Makefile
2022-05-26 14:54:20 +02:00

28 lines
708 B
Makefile

build:
cargo build --release --features=fail-on-deprecated
install:
cargo install --path "." --features=fail-on-deprecated
uninstall:
cargo uninstall onefetch
clean:
cargo clean
release-mac:
strip target/release/onefetch
mkdir -p release
tar -C ./target/release/ -czvf ./release/onefetch-mac.tar.gz ./onefetch
release-win: TAG_NAME = $$(git describe --abbrev=0 --tags)
release-win:
mkdir -p release
tar -C ./target/release/ -czvf ./release/onefetch-win.tar.gz ./onefetch.exe
iscc.exe -DMyAppVersion=${TAG_NAME} ./.github/workflows/windows-installer.iss
release-linux:
strip target/release/onefetch
mkdir -p release
tar -C ./target/release/ -czvf ./release/onefetch-linux.tar.gz ./onefetch