Skip to content

Commit

Permalink
ci: create silent windows executable (#19)
Browse files Browse the repository at this point in the history
* ci: create silent windows executable

* ci: add write-file-action version

* bump: `v2.2.2`
  • Loading branch information
afonsojramos authored Feb 8, 2022
1 parent ca71ff7 commit bf66f56
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,24 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create silent executable
uses: DamianReeves/write-file-action@v1
with:
path: src/main.rs
contents: |
#![windows_subsystem = "windows"]
write-mode: prepend

- name: Build silent executable
run: cargo build --all --release && mv target/release/discrakt.exe target/release/discrakt_silent.exe

- name: Release silent executable
uses: softprops/action-gh-release@v1
with:
files: target/release/discrakt_silent.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-mac:
runs-on: macos-latest
if: startsWith(github.ref, 'refs/tags/')
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "discrakt"
version = "2.2.1"
version = "2.2.2"
edition = "2021"
authors = ["afonsojramos"]
description = "Easy to Use Trakt/Plex Discord Rich Presence"
Expand Down

0 comments on commit bf66f56

Please sign in to comment.