mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-06-24 11:41:28 +02:00
Replaced macOS bundle with .command file
This commit is contained in:
parent
660b9dcc8b
commit
8f48098700
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -45,25 +45,23 @@ jobs:
|
|||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/bin/cargo-bundle
|
|
||||||
~/.cargo/registry/index
|
~/.cargo/registry/index
|
||||||
~/.cargo/registry/cache
|
~/.cargo/registry/cache
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
[ ! -f ~/.cargo/bin/cargo-bundle ] && cargo install cargo-bundle
|
cargo build --release --verbose
|
||||||
cd kalk_cli
|
chmod +x run.command
|
||||||
~/.cargo/bin/cargo-bundle bundle --release --bin kalk
|
mkdir kalk-macOS
|
||||||
mv ../target/release/kalk ../target/release/kalk-macOS-cli
|
mv run.command kalk-macOS
|
||||||
cd ../target/release/bundle/osx/kalk.app
|
mv target/release/kalk kalk-macOS
|
||||||
zip -r kalk-macOS.zip kalk.app
|
zip -r kalk-macOS.zip kalk-macOS
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: binaries
|
name: binaries
|
||||||
path: |
|
path: |
|
||||||
target/release/bundle/osx/kalk-macOS.zip
|
target/release/bundle/osx/kalk-macOS.zip
|
||||||
target/release/kalk-macOS-cli
|
|
||||||
|
|
||||||
release_windows:
|
release_windows:
|
||||||
name: release windows
|
name: release windows
|
||||||
|
3
kalk_cli/run.command
Normal file
3
kalk_cli/run.command
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd "$(dirname $BASH_SOURCE)"
|
||||||
|
./kalk
|
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
<DirectoryRef Id="KalkProgramMenu">
|
<DirectoryRef Id="KalkProgramMenu">
|
||||||
<!-- Application shortcut -->
|
<!-- Application shortcut -->
|
||||||
<Component Id="KalkShortcut" Guid="aa36e61a-23cd-4383-b744-2f78e912f0dc" Win64='$(var.Win64)'>
|
<Component Id="KalkShortcut" Guid="b1a06364-9af2-4864-94c4-e3985906c39f" Win64='$(var.Win64)'>
|
||||||
<Shortcut Id="KalkShortcutFile" Name="Kalk" Description="A calculator" Target="[KalkProgramFiles]kalk.exe"/>
|
<Shortcut Id="KalkShortcutFile" Name="Kalk" Description="A calculator" Target="[KalkProgramFiles]kalk.exe"/>
|
||||||
<RemoveFolder Id="KalkProgramMenu" On="uninstall"/>
|
<RemoveFolder Id="KalkProgramMenu" On="uninstall"/>
|
||||||
<RegistryValue Root="HKCU" Key="Software\Microsoft\kalk" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
<RegistryValue Root="HKCU" Key="Software\Microsoft\kalk" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
<DirectoryRef Id="KalkProgramFiles">
|
<DirectoryRef Id="KalkProgramFiles">
|
||||||
<!-- Add to PATH -->
|
<!-- Add to PATH -->
|
||||||
<Component Id="ModifyPathEnv" Guid="edf0b679-9eb6-46f7-a5d1-5160f30acb34" KeyPath="yes" Win64='$(var.Win64)'>
|
<Component Id="ModifyPathEnv" Guid="732b94ae-608a-45fd-a0b3-d2896b6ef3b8" KeyPath="yes" Win64='$(var.Win64)'>
|
||||||
<Environment Id="PathEnv" Value="[KalkProgramFiles]" Name="PATH" Permanent="no" Part="first" Action="set" System="yes"/>
|
<Environment Id="PathEnv" Value="[KalkProgramFiles]" Name="PATH" Permanent="no" Part="first" Action="set" System="yes"/>
|
||||||
</Component>
|
</Component>
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user