Skip to content

Commit

Permalink
Merge pull request #1 from qtc-de/dev
Browse files Browse the repository at this point in the history
Prepare v1.1.0 Release
  • Loading branch information
qtc-de authored Sep 22, 2023
2 parents 4088e05 + e19d3a1 commit 8166a00
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Build rpv-web

on:
pull_request:
push:
branches:
- main
- dev
paths:
- frontend/**
- src/**
Expand All @@ -20,8 +22,6 @@ jobs:

- name: Install V
uses: vlang/[email protected]
with:
version: '0.4'

- name: Install mingw
run: |
Expand All @@ -47,8 +47,6 @@ jobs:

- name: Install V
uses: vlang/[email protected]
with:
version: '0.4'

- name: Install mingw
run: |
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## v1.1.0 - Sep 22, 2023

### Added

* Add resource files to compiled executable (icon and file info)

### Changed

* Compile executables with `-prod`
* Remove version pinning of *v* from CI


## v1.0.0 - Sep 08, 2023

Initial Release :)
21 changes: 15 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
Options := -os windows -enable-globals
RC := resources/rpv-web.rc
RES := resources/rpv-web.res
Options := -os windows -prod -enable-globals -cflags $(shell pwd)/${RES}
DebugOptions := ${Options} -d debug

rpv-web-x64 x64:
rpv-web-x64 x64: ${RC}
x86_64-w64-mingw32-windres ${RC} -O coff -o ${RES}
v ${Options} . -o ${@}.exe

rpv-web-x64-debug debug:
rpv-web-x64-debug debug: ${RC}
x86_64-w64-mingw32-windres ${RC} -O coff -o ${RES}
v ${DebugOptions} . -o ${@}.exe

rpv-web-x86 x86:
rpv-web-x86 x86: ${RC}
i686-w64-mingw32-windres ${RC} -O coff -o ${RES}
v -m32 ${Options} . -o ${@}.exe

rpv-web-x86-debug x86-debug:
rpv-web-x86-debug x86-debug: ${RC}
i686-w64-mingw32-windres ${RC} -O coff -o ${RES}
v -m32 ${DebugOptions} . -o ${@}.exe

resources/rpv-web.rc:
bash resources/adjust.sh > ${RC}

clean:
rm -f *.exe
rm -f *.exe ${RC} ${RES}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<br/>

[![](https://github.com/qtc-de/rpv-web/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/qtc-de/rpv-web/actions/workflows/build.yml)
[![](https://github.com/qtc-de/rpv-web/actions/workflows/build-dev.yml/badge.svg?branch=develop)](https://github.com/qtc-de/rpv-web/actions/workflows/build-dev.yml)
[![](https://img.shields.io/badge/version-1.0.0-blue)](https://github.com/qtc-de/rpv-web/releases)
[![](https://img.shields.io/badge/language-v-blue)](https://vlang.io/)
[![](https://github.com/qtc-de/rpv-web/actions/workflows/build.yml/badge.svg?branch=dev)](https://github.com/qtc-de/rpv-web/actions/workflows/build.yml)
[![](https://img.shields.io/badge/version-1.1.0-blue)](https://github.com/qtc-de/rpv-web/releases)
[![](https://img.shields.io/badge/language-v%20%26%20vue-blue)](https://vlang.io/)
[![](https://img.shields.io/badge/license-GPL%20v3.0-blue)](https://github.com/qtc-de/rpv-web/blob/master/LICENSE)
[![](https://img.shields.io/badge/Pages-fa6b05)](https://qtc-de.github.io/rpv-web/)
[![](https://img.shields.io/badge/Wiki-5669fc)](https://github.com/qtc-de/rpv-web/wiki)
Expand Down Expand Up @@ -35,7 +35,7 @@ can run the following commands to build *rpv-web*:

```console
[user@host ~]$ v install qtc_de.rpv
[user@host ~]$ https://github.com/qtc-de/rpv-web
[user@host ~]$ git clone https://github.com/qtc-de/rpv-web
[user@host ~]$ cd rpv-web
[user@host rpv-web]$ make
```
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Headline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
<p id="Logo" class="d-inline-block">RP</p>
<img id="LogoPng" src="../assets/icons/rpv-web.png"/>
<p id="Web" class="d-inline-block">WEB</p>
<p class="Fs-8 mb-0 ml-4">v1.0.0</p>
<p class="Fs-8 mb-0 ml-4">v1.1.0</p>
</div>
<div id="RightHeadline">
Expand Down
8 changes: 8 additions & 0 deletions resources/adjust.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

LATEST=$(sed -n 's/^## v\([^ ]\+\).*/\1/p' CHANGELOG.md | head -n 1)

PREPARED=$(sed "s/<FILEVERSION>/${LATEST//./, }/" resources/rpv-web-template.rc)
PREPARED=$(echo "${PREPARED}" | sed "s/<VERSION>/${LATEST}/")

echo "${PREPARED}"
24 changes: 24 additions & 0 deletions resources/rpv-web-template.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ID ICON "rpv-web.ico"
1 VERSIONINFO
FILEVERSION <FILEVERSION>, 0
PRODUCTVERSION <FILEVERSION>, 0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "Tobias Neitzel"
VALUE "FileDescription", "rpv-web server executable"
VALUE "FileVersion", "<VERSION>"
VALUE "InternalName", "rpv-web"
VALUE "LegalCopyright", "Copyright 2023 © Tobias Neitzel"
VALUE "OriginalFilename", "rpv-web.exe"
VALUE "ProductName", "rpv-web"
VALUE "ProductVersion", "<VERSION>"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
Binary file added resources/rpv-web.ico
Binary file not shown.

0 comments on commit 8166a00

Please sign in to comment.