fix: preserve Windows print orientation
Some checks failed
Desktop Release / Bootstrap updater signing key (push) Has been cancelled
Desktop Release / Windows x64 NSIS (push) Has been cancelled
Desktop Release / Linux x64 DEB + AppImage (push) Has been cancelled
Desktop Release / Publish public desktop release (push) Has been cancelled

This commit is contained in:
Admin 2026-09-25 21:49:26 +00:00
parent 3770d649b4
commit 335077504e
5 changed files with 13 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@fieldlens/print",
"version": "0.1.22",
"version": "0.1.23",
"private": true,
"type": "module",
"scripts": {

View File

@ -1,6 +1,6 @@
[package]
name = "fieldlens-print"
version = "0.1.22"
version = "0.1.23"
description = "FieldLens print-stream barcode capture companion"
authors = ["Arrowstack"]
edition = "2021"

View File

@ -373,12 +373,21 @@ if (-not (Get-PrinterPort -Name $portName -ErrorAction SilentlyContinue)) {{
Add-PrinterPort -Name $portName -PrinterHostAddress '127.0.0.1' -PortNumber 9100
}}
$targetConfig = Get-PrintConfiguration -PrinterName $TargetPrinter -ErrorAction SilentlyContinue
$existing = Get-Printer -Name $queueName -ErrorAction SilentlyContinue
if ($existing) {{
Set-Printer -Name $queueName -DriverName $target.DriverName -PortName $portName
}} else {{
Add-Printer -Name $queueName -DriverName $target.DriverName -PortName $portName
}}
# The virtual queue uses the same driver as the physical destination, so its
# PrintTicket can be copied safely. This keeps paper size, duplex settings and
# especially orientation aligned with the real printer instead of falling back
# to the driver's portrait default.
if ($null -ne $targetConfig -and $targetConfig.PrintTicketXML) {{
Set-PrintConfiguration -PrinterName $queueName -PrintTicketXml $targetConfig.PrintTicketXML
}}
"#,
port = WINDOWS_PORT_NAME,
queue = VIRTUAL_PRINTER_NAME,

View File

@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "FieldLens Print",
"version": "0.1.22",
"version": "0.1.23",
"identifier": "dev.arrowstack.fieldlens.print",
"build": {
"beforeDevCommand": "npm run dev",

View File

@ -142,7 +142,7 @@ let config: AppConfig
let jobs: Job[] = []
let status: Status = { running: false, mode: 'raw-proxy', pending: 0, jobs: 0 }
let loginTimer: number | undefined
let currentVersion = '0.1.22'
let currentVersion = '0.1.23'
let bundleType: BundleType | null = null
let availableUpdate: Update | null = null
let availableManualUpdate: ManualUpdate | null = null