Skip to content

Commit 5bd65ac

Browse files
committed
Add packaging for mac/windows
1 parent 7ec5ff7 commit 5bd65ac

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

scripts/build_linux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ cargo install cargo-packager
1515
cargo packager --config '{'\
1616
' "name": "pandora-launcher",'\
1717
' "outDir": "./dist",'\
18+
' "formats": ["deb", "appimage"],'\
1819
' "productName": "Pandora Launcher",'\
1920
' "version": "'"$1"'",'\
2021
' "identifier": "com.moulberry.pandoralauncher",'\

scripts/build_mac.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,18 @@ strip target/x86_64-apple-darwin/release/pandora_launcher
88

99
mkdir -p dist
1010

11-
lipo -create -output dist/PandoraLauncher-macOS-Universal target/x86_64-apple-darwin/release/pandora_launcher target/aarch64-apple-darwin/release/pandora_launcher
11+
lipo -create -output dist/PandoraLauncher-macOS target/x86_64-apple-darwin/release/pandora_launcher target/aarch64-apple-darwin/release/pandora_launcher
12+
13+
cargo install cargo-packager
14+
cargo packager --config '{'\
15+
' "name": "pandora-launcher",'\
16+
' "outDir": "./dist",'\
17+
' "productName": "Pandora Launcher",'\
18+
' "version": "'"$1"'",'\
19+
' "identifier": "com.moulberry.pandoralauncher",'\
20+
' "resources": [],'\
21+
' "binaries": [{ "path": "PandoraLauncher-macOS", "main": true }],'\
22+
' "icons": ["package/icon_32x32.png"]'\
23+
'}'
24+
25+
mv dist/PandoraLauncher-macOS PandoraLauncher-macOS-$1-Universal

scripts/build_windows.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,18 @@ strip target/x86_64-pc-windows-msvc/release/pandora_launcher.exe
55

66
mkdir -p dist
77

8-
mv target/x86_64-pc-windows-msvc/release/pandora_launcher dist/PandoraLauncher-Windows-x86_64.exe
8+
mv target/x86_64-pc-windows-msvc/release/pandora_launcher dist/PandoraLauncher-Windows.exe
9+
10+
cargo install cargo-packager
11+
cargo packager --config '{'\
12+
' "name": "pandora-launcher",'\
13+
' "outDir": "./dist",'\
14+
' "productName": "Pandora Launcher",'\
15+
' "version": "'"$1"'",'\
16+
' "identifier": "com.moulberry.pandoralauncher",'\
17+
' "resources": [],'\
18+
' "binaries": [{ "path": "PandoraLauncher-Windows.exe", "main": true }],'\
19+
' "icons": ["package/icon_32x32.png"]'\
20+
'}'
21+
22+
mv dist/PandoraLauncher-Windows.exe PandoraLauncher-Windows-$1-x86_64.exe

0 commit comments

Comments
 (0)