Skip to content

Commit a433840

Browse files
committed
Switch to GitHub Actions for build and releases
1 parent ff63a2a commit a433840

File tree

5 files changed

+79
-33
lines changed

5 files changed

+79
-33
lines changed

.github/workflows/linux.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
submodules: recursive
15+
16+
- name: Set version
17+
id: set_version
18+
run: echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
19+
20+
- name: Build
21+
run: make

.github/workflows/windows.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Windows
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
PROJECT_NAME: cdecrypt
7+
FRIENDLY_NAME: CDecrypt
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
submodules: recursive
19+
20+
- name: Set version
21+
shell: bash
22+
id: set_version
23+
run: echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
24+
25+
- name: Set major and minor
26+
uses: actions-ecosystem/action-regex-match@v2
27+
id: regex_match
28+
with:
29+
text: ${{ steps.set_version.outputs.version }}
30+
regex: 'v(\d+)\.(\d+)'
31+
32+
- name: Add MSBuild to PATH
33+
uses: microsoft/setup-msbuild@v1
34+
35+
- name: Build
36+
run: msbuild ${{ env.PROJECT_NAME }}.sln /m /p:Configuration=Release /p:Platform=x86 /p:AppVersion=${{ steps.set_version.outputs.version }} /p:AppMajor=${{ steps.regex_match.outputs.group1 }} /p:AppMinor=${{ steps.regex_match.outputs.group2 }}
37+
38+
- name: Upload artifacts
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: ${{ env.PROJECT_NAME }}
42+
path: ./x86/Release/*.exe
43+
44+
- name: Prepare release
45+
if: startsWith(github.ref, 'refs/tags/')
46+
run: |
47+
7z a ${{ env.PROJECT_NAME }}.zip .\x86\Release\*.exe README.md LICENSE.txt
48+
sha256sum ${{ env.PROJECT_NAME }}.zip
49+
50+
- name: Upload release
51+
uses: softprops/action-gh-release@v1
52+
if: startsWith(github.ref, 'refs/tags/')
53+
with:
54+
token: ${{ secrets.GITHUB_TOKEN }}
55+
body: ${{ env.FRIENDLY_NAME}} ${{ steps.set_version.outputs.version }}
56+
files: ./*.zip

appveyor.yml

-31
This file was deleted.

cdecrypt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ int main_utf8(int argc, char** argv)
360360

361361
if (argc < 2) {
362362
printf("%s %s - Wii U NUS content file decrypter\n"
363-
"Copyright (c) 2020-2022 VitaSmith, Copyright (c) 2013-2015 crediar\n"
363+
"Copyright (c) 2020-2023 VitaSmith, Copyright (c) 2013-2015 crediar\n"
364364
"Visit https://github.com/VitaSmith/cdecrypt for official source and downloads.\n\n"
365365
"Usage: %s <file or directory>\n\n"
366366
"This program is free software; you can redistribute it and/or modify it under\n"

cdecrypt.rc

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ BEGIN
4444
VALUE "FileDescription", APP_DESC
4545
VALUE "FileVersion", TO_STRING(APP_MAJOR) "," TO_STRING(APP_MINOR) ",0,0"
4646
VALUE "InternalName", APP_NAME
47-
VALUE "LegalCopyright", "Copyright © 2020 VitaSmith, Copyright © 2013-2015 crediar"
47+
VALUE "LegalCopyright", "Copyright © 2020-2023 VitaSmith, Copyright © 2013-2015 crediar"
4848
VALUE "OriginalFilename", EXE_NAME
4949
VALUE "ProductName", APP_NAME
5050
VALUE "ProductVersion", TO_STRING(APP_MAJOR) "," TO_STRING(APP_MINOR) ",0,0"

0 commit comments

Comments
 (0)