Skip to content

Commit 7ed625d

Browse files
committed
Create a zip with built readme.
1 parent 20fcc8d commit 7ed625d

3 files changed

Lines changed: 49 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ on:
44
tags:
55
- 'v*.*.*'
66
workflow_dispatch:
7+
78
permissions:
89
contents: write
10+
911
jobs:
1012
build:
1113
runs-on: windows-latest
@@ -15,20 +17,42 @@ jobs:
1517
steps:
1618
- name: Checkout Code
1719
uses: actions/checkout@v4
20+
21+
- name: Install Pandoc
22+
run: choco install pandoc
23+
1824
- name: Configure CMake
1925
run: cmake -B build -A ${{ matrix.arch }}
26+
2027
- name: Build
2128
run: cmake --build build --config Release
22-
- name: Rename Binary
29+
30+
- name: Prepare Package
2331
shell: pwsh
2432
run: |
2533
$arch = "${{ matrix.arch }}".ToLower()
26-
Move-Item build/Release/taskmon.exe build/Release/taskmon-$arch.exe
34+
$dist = "dist-$arch"
35+
New-Item -ItemType Directory -Path $dist
36+
37+
# Copy executable
38+
Copy-Item build/Release/taskmon.exe -Destination "$dist/taskmon.exe"
39+
40+
# Copy documentation (HTML if generated, otherwise fallback to MD)
41+
if (Test-Path "build/readme.html") {
42+
Copy-Item build/readme.html -Destination "$dist/readme.html"
43+
} else {
44+
Copy-Item doc/readme.md -Destination "$dist/readme.md"
45+
}
46+
47+
# Create ZIP
48+
Compress-Archive -Path "$dist/*" -DestinationPath "taskmon-$arch.zip"
49+
2750
- name: Upload Artifacts
2851
uses: actions/upload-artifact@v4
2952
with:
3053
name: taskmon-${{ matrix.arch }}
31-
path: build/Release/taskmon-*.exe
54+
path: taskmon-*.zip
55+
3256
release:
3357
needs: build
3458
runs-on: ubuntu-latest
@@ -37,8 +61,10 @@ jobs:
3761
uses: actions/download-artifact@v4
3862
with:
3963
path: ./artifacts
64+
4065
- name: List artifacts
4166
run: ls -R ./artifacts
67+
4268
- name: Create Release
4369
uses: softprops/action-gh-release@v2
4470
with:
@@ -47,5 +73,6 @@ jobs:
4773
draft: false
4874
prerelease: false
4975
files: |
50-
./artifacts/taskmon-x64/taskmon-x64.exe
51-
./artifacts/taskmon-ARM64/taskmon-arm64.exe
76+
./artifacts/taskmon-x64/taskmon-x64.zip
77+
./artifacts/taskmon-ARM64/taskmon-arm64.zip
78+

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,14 @@ if(MSVC)
99
target_link_options(taskmon PRIVATE /NODEFAULTLIB /ENTRY:WinMainCRTStartup /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /MERGE:.rdata=.text /MERGE:.pdata=.text)
1010
endif()
1111
target_link_libraries(taskmon PRIVATE kernel32 user32 gdi32 shell32 comctl32 ole32 shlwapi ntdll advapi32 dwmapi uxtheme comdlg32 version)
12+
13+
find_program(PANDOC_EXECUTABLE pandoc)
14+
if(PANDOC_EXECUTABLE)
15+
add_custom_command(
16+
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/readme.html"
17+
COMMAND ${PANDOC_EXECUTABLE} -s "${CMAKE_CURRENT_SOURCE_DIR}/doc/readme.md" -o "${CMAKE_CURRENT_BINARY_DIR}/readme.html"
18+
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/doc/readme.md"
19+
COMMENT "Generating HTML documentation from README.md"
20+
)
21+
add_custom_target(doc ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/readme.html")
22+
endif()

doc/readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ Bringing up the context menu on a process in the list provides access to several
4444

4545
## Changelog
4646

47+
### Version 0.2.1
48+
* Added support for ARM64 architecture.
49+
* Releases are now packaged as ZIP files containing a standalone HTML user manual.
50+
* Added 10 new columns: DPI Awareness, Company, Description, Parent PID, Private Working Set, Paged Pool, Nonpaged Pool, I/O Read, I/O Write, and I/O Other.
51+
* Improved memory and I/O column formatting using standard Windows byte size strings.
52+
4753
### Version 0.2.0
4854
* Added a basic status bar.
4955
* Added a run dialog for launching new tasks.

0 commit comments

Comments
 (0)