Skip to content

Commit

Permalink
#1
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-js committed Sep 3, 2020
1 parent bd620ab commit 0d2a860
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
include:
- os: ubuntu-latest
artifact_name: mynad
asset_name: mynad-linux-x86_64
asset_name: mynad-linux-x86_64.zip
- os: windows-latest
artifact_name: mynad.exe
asset_name: mynad-windows-x86_64.exe
asset_name: mynad-windows-x86_64.zip
- os: macos-latest
artifact_name: mynad
asset_name: mynad-macos-x86_64
asset_name: mynad-macos-x86_64.zip
name: Build daemon for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -32,10 +32,27 @@ jobs:
toolchain: stable
- name: Build
run: cargo build --release
- name: compress files
env:
ZIP_FILE: ${{ matrix.asset_name }}.zip
EXE_FILE: ${{ matrix.artifact_name }}
if: matrix.os != 'windows-latest'
run: |
mv target/release/$EXE_FILE .
zip $ZIP_FILE $EXE_FILE INSTALL.md
- name: compress files
env:
ZIP_FILE: ${{ matrix.asset_name }}.zip
EXE_FILE: ${{ matrix.artifact_name }}
if: matrix.os == 'windows-latest'
run: |
mv target/release/$EXE_FILE C:\myna
mv INSTALL.md C:\myna
Compress-Archive -Path C:\myna -DestinationPath .\%ZIP_FILE%
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
file: ${{ matrix.asset_name }}.zip
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
7 changes: 6 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@

## 2. 実行

ダウンロードしたファイルをダブルクリックしたり、ターミナルから呼び出すことによって起動してください。
ZIPファイルを解答すると、"mynad"というファイルが現れます。このファイルをダブルクリックしたり、ターミナルから呼び出すことによって起動してください。

### macOSで実行できないときは


"mynad"を右クリックして、「開く」を選択し、警告が表示されますが、OKを押して続行してください。

## 3. 終了

Expand Down

0 comments on commit 0d2a860

Please sign in to comment.