Browse Source

Update build process

master 1.4
Abheek Dhawan 3 years ago
parent
commit
e979931d99
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 2
      .drone.yml
  2. 2
      build-linux.sh
  3. 2
      build-win.sh

2
.drone.yml

@ -5,7 +5,7 @@ type: docker
steps:
- name: build
image: debian
image: debian:stable-slim
commands:
- apt-get update
- apt-get upgrade -y

2
build-linux.sh

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

2
build-win.sh

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

Loading…
Cancel
Save