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
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:
parent
3770d649b4
commit
335077504e
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@fieldlens/print",
|
"name": "@fieldlens/print",
|
||||||
"version": "0.1.22",
|
"version": "0.1.23",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "fieldlens-print"
|
name = "fieldlens-print"
|
||||||
version = "0.1.22"
|
version = "0.1.23"
|
||||||
description = "FieldLens print-stream barcode capture companion"
|
description = "FieldLens print-stream barcode capture companion"
|
||||||
authors = ["Arrowstack"]
|
authors = ["Arrowstack"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
@ -373,12 +373,21 @@ if (-not (Get-PrinterPort -Name $portName -ErrorAction SilentlyContinue)) {{
|
|||||||
Add-PrinterPort -Name $portName -PrinterHostAddress '127.0.0.1' -PortNumber 9100
|
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
|
$existing = Get-Printer -Name $queueName -ErrorAction SilentlyContinue
|
||||||
if ($existing) {{
|
if ($existing) {{
|
||||||
Set-Printer -Name $queueName -DriverName $target.DriverName -PortName $portName
|
Set-Printer -Name $queueName -DriverName $target.DriverName -PortName $portName
|
||||||
}} else {{
|
}} else {{
|
||||||
Add-Printer -Name $queueName -DriverName $target.DriverName -PortName $portName
|
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,
|
port = WINDOWS_PORT_NAME,
|
||||||
queue = VIRTUAL_PRINTER_NAME,
|
queue = VIRTUAL_PRINTER_NAME,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "FieldLens Print",
|
"productName": "FieldLens Print",
|
||||||
"version": "0.1.22",
|
"version": "0.1.23",
|
||||||
"identifier": "dev.arrowstack.fieldlens.print",
|
"identifier": "dev.arrowstack.fieldlens.print",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "npm run dev",
|
"beforeDevCommand": "npm run dev",
|
||||||
|
|||||||
@ -142,7 +142,7 @@ let config: AppConfig
|
|||||||
let jobs: Job[] = []
|
let jobs: Job[] = []
|
||||||
let status: Status = { running: false, mode: 'raw-proxy', pending: 0, jobs: 0 }
|
let status: Status = { running: false, mode: 'raw-proxy', pending: 0, jobs: 0 }
|
||||||
let loginTimer: number | undefined
|
let loginTimer: number | undefined
|
||||||
let currentVersion = '0.1.22'
|
let currentVersion = '0.1.23'
|
||||||
let bundleType: BundleType | null = null
|
let bundleType: BundleType | null = null
|
||||||
let availableUpdate: Update | null = null
|
let availableUpdate: Update | null = null
|
||||||
let availableManualUpdate: ManualUpdate | null = null
|
let availableManualUpdate: ManualUpdate | null = null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user