Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,38 @@ jobs:
uploadWorkflowArtifacts: true
workflowArtifactNamePattern: openProfiler-[version]-[platform]-[arch]-[bundle]

- name: Verify Windows GUI subsystem
shell: pwsh
run: |
$metadata = cargo metadata --no-deps --format-version 1 | ConvertFrom-Json
$package = $metadata.packages | Where-Object name -eq "opensoft-open-profiler"
$binaryName = ($package.targets | Where-Object { $_.kind -contains "bin" }).name
$binaryPath = Join-Path "target/release" "$binaryName.exe"

if (-not (Test-Path $binaryPath)) {
throw "Built application binary was not found at $binaryPath"
}

$stream = [System.IO.File]::OpenRead($binaryPath)
$reader = [System.IO.BinaryReader]::new($stream)
try {
$stream.Position = 0x3c
$peOffset = $reader.ReadInt32()
$stream.Position = $peOffset
if ($reader.ReadUInt32() -ne 0x00004550) {
throw "$binaryPath does not contain a valid PE signature"
}

$stream.Position = $peOffset + 24 + 68
$subsystem = $reader.ReadUInt16()
if ($subsystem -ne 2) {
throw "$binaryPath uses PE subsystem $subsystem; expected 2 (WINDOWS_GUI)"
}
Comment thread
brettheap marked this conversation as resolved.
} finally {
$reader.Dispose()
$stream.Dispose()
}

publish-release:
name: Publish GitHub prerelease
if: github.event_name == 'push' && github.ref_type == 'tag'
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ cross-platform icons, CI, Dependabot, security policy, and contribution guide.
Version tags publish Windows installers through the
[`Windows Release`](.github/workflows/windows-release.yml) GitHub Actions
workflow. The tag must match the version in `src-tauri/tauri.conf.json`; for
example, version `0.1.1` is released with tag `v0.1.1`.
example, version `0.1.2` is released with tag `v0.1.2`.

The tagged GitHub prerelease contains:

Expand Down
2 changes: 1 addition & 1 deletion crates/open-profiler-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opensoft-open-profiler-core"
version = "0.1.1"
version = "0.1.2"
description = "Secure LLM profile discovery and activation for openProfiler"
edition.workspace = true
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@opensoft/open-profiler",
"private": true,
"version": "0.1.1",
"version": "0.1.2",
"description": "A full LLM profile manager",
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opensoft-open-profiler"
version = "0.1.1"
version = "0.1.2"
description = "A full LLM profile manager"
edition.workspace = true
license.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

fn main() {
opensoft_open_profiler_lib::run();
}
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "openProfiler",
"version": "0.1.1",
"version": "0.1.2",
"identifier": "com.opensoft.openprofiler",
"build": {
"beforeDevCommand": "pnpm dev",
Expand Down
Loading