Skip to content

Commit

Permalink
god I am so bad at this (static msvc compile, working bash script)
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonInTheDark committed Apr 29, 2024
1 parent fa3b3ed commit abc9004
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=+crt-static"]
8 changes: 5 additions & 3 deletions release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ cd %name%
# sets up gitignore so this doesn't pollute my life
echo * > .gitignore
# copy over the 2 binaries we just generated
copy ..\target\x86_64-unknown-linux-musl\release\hypnagogic-cli .
copy ..\target\x86_64-pc-windows-msvc\release\hypnagogic-cli.exe .
copy ..\target\x86_64-unknown-linux-musl\release\hypnagogic-cli .
rename "hypnagogic-cli.exe" "hypnagogic.exe"
rename "hypnagogic-cli" "hypnagogic"

# make our to be zipped subfolder
mkdir hypnagogic-full-package
# insert a copy of the binaries and other shit we care about
copy hypnagogic-cli.exe hypnagogic-full-package\
copy hypnagogic-cli hypnagogic-full-package\
copy hypnagogic.exe hypnagogic-full-package\
copy hypnagogic hypnagogic-full-package\
copy ..\LICENSE.md hypnagogic-full-package\
copy ..\README.md hypnagogic-full-package\
xcopy ..\examples hypnagogic-full-package\examples\ /E/H
Expand Down

0 comments on commit abc9004

Please sign in to comment.