mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-04 20:15:09 +01:00
Update the version and add support using the git hash on nightlies
This commit is contained in:
parent
79522dc356
commit
c40df1a909
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -18,6 +18,13 @@ jobs:
|
||||
needs: clang-format
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: create version.h
|
||||
run: |
|
||||
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||
cat <<EOF > ./src/version.h
|
||||
#pragma once
|
||||
#define VERSION_EXTRA " (nightly-$git_hash)"
|
||||
EOF
|
||||
- name: build binary
|
||||
run: |
|
||||
docker build . -t builder
|
||||
|
7
.github/workflows/pr.yml
vendored
7
.github/workflows/pr.yml
vendored
@ -26,6 +26,13 @@ jobs:
|
||||
needs: clang-format
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: create version.h
|
||||
run: |
|
||||
git_hash=$(git rev-parse --short "${{ github.event.pull_request.head.sha }}")
|
||||
cat <<EOF > ./src/version.h
|
||||
#pragma once
|
||||
#define VERSION_EXTRA " (nightly-$git_hash)"
|
||||
EOF
|
||||
- name: build binary
|
||||
run: |
|
||||
docker build . -t builder
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "main.h"
|
||||
#include "BackgroundThread.hpp"
|
||||
#include "utils/logger.h"
|
||||
#include "virtualpath.h"
|
||||
@ -9,7 +10,7 @@
|
||||
|
||||
WUPS_PLUGIN_NAME("FTPiiU");
|
||||
WUPS_PLUGIN_DESCRIPTION("FTP Server");
|
||||
WUPS_PLUGIN_VERSION("0.1");
|
||||
WUPS_PLUGIN_VERSION(VERSION_FULL_RAW);
|
||||
WUPS_PLUGIN_AUTHOR("Maschell");
|
||||
WUPS_PLUGIN_LICENSE("GPL");
|
||||
|
||||
|
@ -7,10 +7,14 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include "net.h"
|
||||
#include "version.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#define MAXPATHLEN 256
|
||||
|
||||
#define VERSION_RAW "0.1.1"
|
||||
#define VERSION_FULL_RAW VERSION_RAW VERSION_EXTRA
|
||||
|
||||
#define wiiu_geterrno() (errno)
|
||||
|
||||
//! C wrapper for our C++ functions
|
||||
|
2
src/version.h
Normal file
2
src/version.h
Normal file
@ -0,0 +1,2 @@
|
||||
#pragma once
|
||||
#define VERSION_EXTRA ""
|
Loading…
Reference in New Issue
Block a user