Browse Source

Use bin/ directory for binaries

development
Abheek Dhawan 3 years ago
parent
commit
ab174324ce
  1. 3
      .drone.yml
  2. 1
      .gitignore
  3. 3
      build-linux.sh
  4. 3
      build-win.sh
  5. BIN
      modlimitfix

3
.drone.yml

@ -22,7 +22,6 @@ steps:
from_secret: gitea_token from_secret: gitea_token
base_url: https://git.adawesome.tech base_url: https://git.adawesome.tech
files: files:
- modlimitfix - bin/*
- modlimitfix.exe
when: when:
event: tag event: tag

1
.gitignore

@ -1 +1,2 @@
*.exe *.exe
bin/*

3
build-linux.sh

@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
g++ main.cpp -o modlimitfix --std=c++17 mkdir -p bin/
g++ main.cpp -o bin/modlimitfix --std=c++17

3
build-win.sh

@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
mkdir -p bin/
# Use MINGW for cross-compilation # Use MINGW for cross-compilation
x86_64-w64-mingw32-g++ main.cpp -o modlimitfix.exe -std=c++17 --static x86_64-w64-mingw32-g++ main.cpp -o bin/modlimitfix.exe -std=c++17 --static

BIN
modlimitfix

Binary file not shown.
Loading…
Cancel
Save