-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 66b215f
Showing
35 changed files
with
5,249 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-20.04, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-20.04' | ||
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature. | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev | ||
- name: Rust setup | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Rust cache | ||
uses: swatinem/rust-cache@v2 | ||
with: | ||
workspaces: './src-tauri -> target' | ||
|
||
- name: Sync node version and setup cache | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 'lts/*' | ||
cache: 'npm' # Set this to npm, yarn or pnpm. | ||
|
||
- name: Install frontend dependencies | ||
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too. | ||
run: npm install # Change this to npm, yarn or pnpm. | ||
|
||
- name: Build the app | ||
uses: tauri-apps/tauri-action@v0 | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags. | ||
releaseName: 'App Name v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version. | ||
releaseBody: 'See the assets to download and install this version.' | ||
releaseDraft: true | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
src-tauri/target/ | ||
node_modules/ | ||
dist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 SRA2022 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Play 2048 | ||
|
||
2048 game built with tauri | ||
|
||
[![Release](https://github.com/silentdusk/game-2048/actions/workflows/release.yml/badge.svg)](https://github.com/silentdusk/game-2048/actions/workflows/release.yml) | ||
|
||
## About | ||
|
||
2048 is a puzzle game. The goal of the game is to build tile 2048 (or bigger) combining tiles with same number. Arrow keys are used to move tiles. | ||
|
||
Download the app for Linux, Windows and MacOs from [github releases](https://github.com/silentdusk/game-2048/releases). | ||
|
||
|
||
![game screenshot](/docs/screenshot.webp) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="stylesheet" href="/src/styles.css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>2048</title> | ||
<script type="module" src="/src/main.ts" defer></script> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<header> | ||
<div class="right"> | ||
<span id="score"></span> | ||
<img src="./src/assets/diamond.png" alt="diamond" class="diamond" /> | ||
<button id="new-game-button">New Game</button> | ||
</div> | ||
</header> | ||
|
||
<div class="game"> | ||
<div class="cell" id="c00"></div> | ||
<div class="cell" id="c01"></div> | ||
<div class="cell" id="c02"></div> | ||
<div class="cell" id="c03"></div> | ||
<div class="cell" id="c10"></div> | ||
<div class="cell" id="c11"></div> | ||
<div class="cell" id="c12"></div> | ||
<div class="cell" id="c13"></div> | ||
<div class="cell" id="c20"></div> | ||
<div class="cell" id="c21"></div> | ||
<div class="cell" id="c22"></div> | ||
<div class="cell" id="c23"></div> | ||
<div class="cell" id="c30"></div> | ||
<div class="cell" id="c31"></div> | ||
<div class="cell" id="c32"></div> | ||
<div class="cell" id="c33"></div> | ||
</div> | ||
|
||
<div class="message"></div> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.