Skip to content

Commit fbaa0ab

Browse files
committed
Add debugging information to release process.
1 parent 8a036c5 commit fbaa0ab

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,22 @@ jobs:
1616

1717
- name: Build Intel App
1818
run: |
19+
echo "Building Intel version..."
1920
ARCH="x86_64" ./build.sh
21+
echo "Checking Intel build contents..."
22+
ls -R build/
23+
echo "Copying Intel build..."
2024
cp -R build/NeovideProject.app build/NeovideProject-intel.app || exit 1
2125
cp build/NeovideProject.dmg build/NeovideProject-intel.dmg || exit 1
2226
rm -rf build/NeovideProject.app build/NeovideProject.dmg
2327
2428
- name: Build ARM App
2529
run: |
30+
echo "Building ARM version..."
2631
ARCH="arm64" ./build.sh
32+
echo "Checking ARM build contents..."
33+
ls -R build/
34+
echo "Copying ARM build..."
2735
cp -R build/NeovideProject.app build/NeovideProject-arm.app || exit 1
2836
cp build/NeovideProject.dmg build/NeovideProject-arm.dmg || exit 1
2937
rm -rf build/NeovideProject.app build/NeovideProject.dmg

build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ mkdir -p "build/$APP_NAME.app/Contents/Resources"
2929
sed "s/com\.neovide\.project/$BUNDLE_ID/g" "src/Contents/Info.plist" >"build/$APP_NAME.app/Contents/Info.plist"
3030

3131
# Compile Swift launcher
32+
echo "Compiling for architecture: $ARCH with target: $TARGET"
3233
swiftc "src/Contents/MacOS/neovide-project-launcher.swift" \
3334
-target $TARGET \
3435
-o "build/$APP_NAME.app/Contents/MacOS/neovide-project-launcher"
3536

37+
# Verify the binary was created
38+
if [ ! -f "build/$APP_NAME.app/Contents/MacOS/neovide-project-launcher" ]; then
39+
echo "ERROR: Binary was not created!"
40+
ls -la "build/$APP_NAME.app/Contents/MacOS/"
41+
exit 1
42+
fi
43+
3644
# Copy resources
3745
cp "src/Contents/Resources/neovide-project" "build/$APP_NAME.app/Contents/Resources/"
3846
cp "src/Contents/Resources/neovide.icns" "build/$APP_NAME.app/Contents/Resources/"
@@ -41,6 +49,8 @@ chmod +x "build/$APP_NAME.app/Contents/Resources/neovide-project"
4149
# Verify architecture of built binary
4250
echo "Verifying binary architecture..."
4351
file "build/$APP_NAME.app/Contents/MacOS/neovide-project-launcher"
52+
echo "Full directory structure:"
53+
ls -R build/
4454

4555
echo "Building DMG..."
4656
hdiutil create -volname "$APP_NAME" -srcfolder "build/$APP_NAME.app" -ov -format UDZO "build/$APP_NAME.dmg"

0 commit comments

Comments
 (0)