Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Create GitHub Release

on:
push:
tags:
- '*'

jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Set up
run: |
cd files/scripts
mkdir electron_zipped
cd electron_zipped
wget https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-win32-x64.zip
wget https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-linux-x64.zip

- name: Install
run: python files/scripts/builder.py

- name: Compress
run: |
cd files/scripts/dist/
zip -r nibbler-windows.zip nibbler-*-windows
zip -r nibbler-linux.zip nibbler-*-linux
mv nibbler-*.zip $GITHUB_WORKSPACE/

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: true
files: |
nibbler-linux.zip
nibbler-windows.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ These days, Nibbler more-or-less works with traditional engines like [Stockfish]

For prebuilt binary releases, see the [Releases](https://github.com/rooklift/nibbler/releases) section. For help, the [Discord](https://discordapp.com/invite/pKujYxD) may be your best bet, or open an issue here.

![Screenshot](https://user-images.githubusercontent.com/16438795/190862093-f6a9b37e-cad3-418a-8b70-521000bef778.png)
![Screenshot](https://user-images.githubusercontent.com/63931154/200676493-016aa50d-f45e-457e-9461-9bed2cc453a4.png)

## Features

Expand Down
1 change: 1 addition & 0 deletions files/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
scripts/dist
scripts/electron_zipped
scripts/update_my_installation.py
5 changes: 3 additions & 2 deletions files/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ ICON_SVG_PATH="/usr/local/share/icons/hicolor/scalable/apps/nibbler.svg"
echo "Installing Nibbler to ${INSTALL_DIR}"
echo "Creating binary symlink at ${BIN_SYMLINK_PATH}"
echo "Installing desktop entry to ${DESKTOP_ENTRY_PATH}"
echo "Installing icon to ${ICON_PATH}"
echo "Installing icons to ${ICON_PNG_PATH} and ${ICON_SVG_PATH}"
echo "This will require sudo privilege."

# remove old and make sure directories are created
for FILE in "${INSTALL_DIR}" "${BIN_SYMLINK_PATH}" "${DESKTOP_ENTRY_PATH}" "${ICON_PATH}"; do
for FILE in "${INSTALL_DIR}" "${BIN_SYMLINK_PATH}" "${DESKTOP_ENTRY_PATH}" \
"${ICON_PNG_PATH}" "${ICON_SVG_PATH}"; do
sudo rm -rf "$FILE"
sudo mkdir -p $(dirname "$FILE")
done
Expand Down
Loading