local build scripts for macos builds
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
assets/maps/autosave
|
assets/maps/autosave
|
||||||
build/steamos/hedz_reloaded
|
build/steamos/hedz_reloaded
|
||||||
build/steamos/.env
|
build/steamos/.env
|
||||||
|
build/macos/src/HEDZReloaded.app/Contents/MacOS
|
||||||
|
|||||||
BIN
build/icon_1024x1024.png
Normal file
|
After Width: | Height: | Size: 280 KiB |
BIN
build/macos/AppIcon.iconset/icon_128x128.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
build/macos/AppIcon.iconset/icon_128x128@2x.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
build/macos/AppIcon.iconset/icon_16x16.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
build/macos/AppIcon.iconset/icon_16x16@2x.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
build/macos/AppIcon.iconset/icon_256x256.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
build/macos/AppIcon.iconset/icon_256x256@2x.png
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
build/macos/AppIcon.iconset/icon_32x32.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
build/macos/AppIcon.iconset/icon_32x32@2x.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
build/macos/AppIcon.iconset/icon_512x512.png
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
build/macos/AppIcon.iconset/icon_512x512@2x.png
Normal file
|
After Width: | Height: | Size: 280 KiB |
17
build/macos/icon.sh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
rm -rf AppIcon.iconset/*
|
||||||
|
mkdir -p AppIcon.iconset
|
||||||
|
sips -z 16 16 ../icon_1024x1024.png --out AppIcon.iconset/icon_16x16.png
|
||||||
|
sips -z 32 32 ../icon_1024x1024.png --out AppIcon.iconset/icon_16x16@2x.png
|
||||||
|
sips -z 32 32 ../icon_1024x1024.png --out AppIcon.iconset/icon_32x32.png
|
||||||
|
sips -z 64 64 ../icon_1024x1024.png --out AppIcon.iconset/icon_32x32@2x.png
|
||||||
|
sips -z 128 128 ../icon_1024x1024.png --out AppIcon.iconset/icon_128x128.png
|
||||||
|
sips -z 256 256 ../icon_1024x1024.png --out AppIcon.iconset/icon_128x128@2x.png
|
||||||
|
sips -z 256 256 ../icon_1024x1024.png --out AppIcon.iconset/icon_256x256.png
|
||||||
|
sips -z 512 512 ../icon_1024x1024.png --out AppIcon.iconset/icon_256x256@2x.png
|
||||||
|
sips -z 512 512 ../icon_1024x1024.png --out AppIcon.iconset/icon_512x512.png
|
||||||
|
cp ../icon_1024x1024.png AppIcon.iconset/icon_512x512@2x.png
|
||||||
|
iconutil -c icns AppIcon.iconset
|
||||||
|
mkdir -p src/HEDZReloaded.app/Contents/Resources
|
||||||
|
mv AppIcon.icns src/HEDZReloaded.app/Contents/Resources/
|
||||||
BIN
build/macos/libsteam_api.dylib
Normal file
29
build/macos/src/HEDZReloaded.app/Contents/Info.plist
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>en</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>hedz_reloaded</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>hedz_reloaded</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>AppIcon.icns</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.rustunit.hedz_reloaded</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>HEDZ Reloaded</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<!-- Version -->
|
||||||
|
<string>0.1.0</string>
|
||||||
|
<key>CFBundleSupportedPlatforms</key>
|
||||||
|
<array>
|
||||||
|
<string>MacOSX</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
BIN
build/macos/src/HEDZReloaded.app/Contents/Resources/AppIcon.icns
Normal file
13
justfile
@@ -13,3 +13,16 @@ check:
|
|||||||
cargo b
|
cargo b
|
||||||
cargo test
|
cargo test
|
||||||
cargo clippy
|
cargo clippy
|
||||||
|
|
||||||
|
build-lipo:
|
||||||
|
cargo build --release --target=x86_64-apple-darwin
|
||||||
|
cargo build --release --target=aarch64-apple-darwin
|
||||||
|
lipo -create -output target/release/hedz_reloaded target/aarch64-apple-darwin/release/hedz_reloaded target/x86_64-apple-darwin/release/hedz_reloaded
|
||||||
|
|
||||||
|
build-app:
|
||||||
|
rm -rf build/macos/src/HEDZReloaded.app/Contents/MacOS/* | true
|
||||||
|
mkdir -p build/macos/src/HEDZReloaded.app/Contents/MacOS/assets
|
||||||
|
cp -r assets/ build/macos/src/HEDZReloaded.app/Contents/MacOS/assets
|
||||||
|
cp target/release/hedz_reloaded build/macos/src/HEDZReloaded.app/Contents/MacOS/
|
||||||
|
cp build/macos/libsteam_api.dylib build/macos/src/HEDZReloaded.app/Contents/MacOS/
|
||||||
|
hdiutil create -fs HFS+ -volname "HEDZReloaded" -srcfolder build/macos/src HEDZReloaded.dmg
|
||||||
|
|||||||