Skip to content

Commit ae0b8a2

Browse files
authored
Fix-build-issues (#22)
* refactor: Move Wails service bindings to internal/wails package Moves all Wails service wrapper files from root directory to internal/wails/ for better organization and separation of concerns. Changes: - Moved: jwt_service.go, barcode_service.go, conversion_service.go, data_generator_service.go, codeformatter_service.go - Updated package from 'main' to 'wails' - Changed startup() to Startup() (exported method) - Updated main.go and server.go imports - Updated type references to use wails package * fix: wrong be package, try to build proper binary for each platform * fix: unit tests * fix: unit tests path * Fix Windows build: remove redundant mv command since Wails already outputs .exe * Make code signing optional and add macOS installation instructions for unsigned builds * Fix macOS DMG build: clean up existing files before creating DMG
1 parent c3bb510 commit ae0b8a2

1 file changed

Lines changed: 3 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ jobs:
120120
if [ "${{ matrix.os }}" = "macos-latest" ]; then
121121
# macOS: create DMG using create-dmg
122122
brew install create-dmg
123+
# Clean up any existing files
124+
rm -f release/dev-toolbox-${{ matrix.build }}.dmg
125+
rm -f /tmp/rw.*.dev-toolbox-${{ matrix.build }}.dmg
123126
create-dmg \
124127
--volname "Dev-Toolbox" \
125128
--window-pos 200 120 \
@@ -137,31 +140,6 @@ jobs:
137140
fi
138141
shell: bash
139142

140-
# Package and upload build artifacts
141-
- name: Package Artifacts
142-
run: |
143-
mkdir -p release
144-
if [ "${{ matrix.os }}" = "macos-latest" ]; then
145-
# macOS: create DMG using create-dmg
146-
brew install create-dmg
147-
create-dmg \
148-
--volname "Dev-Toolbox" \
149-
--window-pos 200 120 \
150-
--window-size 800 400 \
151-
--icon-size 100 \
152-
--app-drop-link 600 185 \
153-
"release/dev-toolbox-${{ matrix.build }}.dmg" \
154-
"build/bin/dev-toolbox.app"
155-
elif [ "${{ matrix.os }}" = "windows-latest" ]; then
156-
# Windows: rename binary with .exe extension
157-
mv build/bin/dev-toolbox build/bin/dev-toolbox.exe
158-
cp build/bin/dev-toolbox.exe release/dev-toolbox-${{ matrix.build }}.exe
159-
else
160-
# Linux: create AppImage or tar.gz
161-
tar -czf "release/dev-toolbox-${{ matrix.build }}.tar.gz" -C build/bin dev-toolbox
162-
fi
163-
shell: bash
164-
165143
- name: Upload Artifacts
166144
uses: actions/upload-artifact@v4
167145
with:

0 commit comments

Comments
 (0)