Skip to content

Commit

Permalink
2024-10-02-17-28-19
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwilding committed Oct 2, 2024
1 parent 1540bac commit f3af378
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ jobs:
run: |
if [[ "${{ matrix.target }}" == *"windows"* ]]; then
executable_name="dygma-layer-switcher.exe"
cp target/${{ matrix.target }}/release/dygma-layer-switcher.exe .
cp target/${{ matrix.target }}/release/$executable_name .
mv $executable_name "Dygma Layer Switcher.exe"
else
executable_name="dygma-layer-switcher"
cp target/${{ matrix.target }}/release/dygma-layer-switcher .
cp target/${{ matrix.target }}/release/$executable_name .
mv $executable_name "Dygma Layer Switcher"
fi
mv $executable_name "Dygma Layer Switcher"
zip dls-${{ env.PACKAGE_VERSION }}-${{ matrix.target }}.zip "Dygma Layer Switcher"
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
Expand Down
8 changes: 3 additions & 5 deletions dygma-layer-switcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "dygma-layer-switcher"
version = "0.3.12"
edition = "2021"
authors = ["Matthew Wilding <[email protected]>"]
build = "build_win.rs"

[dependencies]
anyhow = "1.0"
Expand All @@ -27,16 +28,13 @@ tracing-subscriber = { version = "0.3", default-features = false, features = [
] }
winit = "0.30"

[build-dependencies]
embed-resource = "2.5"

[features]
no-admin = [] # Disable forced administrator mode on Windows

# Windows

[target.'cfg(windows)'.package]
build = "build_win.rs"
[target.'cfg(windows)'.build-dependencies]
embed-resource = "2.5"

[target.'cfg(windows)'.dependencies]
windows = { version = "0.56", features = [
Expand Down

0 comments on commit f3af378

Please sign in to comment.