Skip to content

Commit 0961f49

Browse files
authored
feat: Support 'WolframApp' bundle ID, used by the unified Wolfram app in 14.1+ (#70)
1 parent 6ab9165 commit 0961f49

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ pub struct WolframApp {
112112
#[non_exhaustive]
113113
#[cfg_attr(feature = "cli", derive(clap::ValueEnum))]
114114
pub enum WolframAppType {
115+
/// Unified Wolfram App
116+
WolframApp,
115117
/// [Wolfram Mathematica](https://www.wolfram.com/mathematica/)
116118
Mathematica,
117119
/// [Wolfram Engine](https://wolfram.com/engine)
@@ -447,6 +449,7 @@ impl WolframAppType {
447449
use WolframAppType::*;
448450

449451
vec![
452+
WolframApp,
450453
Mathematica,
451454
Desktop,
452455
Engine,
@@ -476,6 +479,7 @@ impl WolframAppType {
476479

477480
match self {
478481
// Unrestricted | with a front end
482+
WolframApp => 110,
479483
Desktop => 100,
480484
Mathematica => 99,
481485
FinancePlatform => 98,
@@ -499,6 +503,7 @@ impl WolframAppType {
499503
#[allow(dead_code)]
500504
fn app_name(&self) -> &'static str {
501505
match self {
506+
WolframAppType::WolframApp => "Wolfram",
502507
WolframAppType::Mathematica => "Mathematica",
503508
WolframAppType::Engine => "Wolfram Engine",
504509
WolframAppType::Desktop => "Wolfram Desktop",

src/os/macos.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ impl WolframAppType {
3838
use WolframAppType::*;
3939

4040
match self {
41+
WolframApp => "com.wolfram.WolframApp",
4142
Mathematica => "com.wolfram.Mathematica",
4243
PlayerPro => "com.wolfram.Mathematica.PlayerPro",
4344
Player => "com.wolfram.Mathematica.Player",

0 commit comments

Comments
 (0)