-
-
Notifications
You must be signed in to change notification settings - Fork 51
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 7be3043
Showing
33 changed files
with
5,402 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,2 @@ | ||
open_collective: cinny | ||
liberapay: ajbura |
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,22 @@ | ||
<!-- Please read https://github.com/ajbura/cinny/CONTRIBUTING.md before submitting your pull request --> | ||
|
||
### Description | ||
<!-- Please include a summary of the change. Please also include relevant motivation and context. List any dependencies that are required for this change. --> | ||
|
||
|
||
Fixes # | ||
|
||
#### Type of change | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
### Checklist: | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings |
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,3 @@ | ||
# Reporting a Vulnerability | ||
|
||
**If you've found a security vulnerability, please report it to [email protected]** |
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,30 @@ | ||
# Docs: <https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/customizing-dependency-updates> | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
day: "tuesday" | ||
time: "01:00" | ||
timezone: "Asia/Kolkata" | ||
open-pull-requests-limit: 15 | ||
|
||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
day: "tuesday" | ||
time: "01:00" | ||
timezone: "Asia/Kolkata" | ||
open-pull-requests-limit: 5 | ||
|
||
- package-ecosystem: cargo | ||
directory: /src-tauri/ | ||
schedule: | ||
interval: weekly | ||
day: "tuesday" | ||
time: "01:00" | ||
timezone: "Asia/Kolkata" | ||
open-pull-requests-limit: 5 |
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,98 @@ | ||
name: "Publish Tauri App" | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-tauri: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
with: | ||
submodules: true | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/get-release@3a8733307b85cd96d52772b037617bd63d99522e | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
- name: Install Rust stable | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
- name: Install webkit2gtk (ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y webkit2gtk-4.0 | ||
- name: Install cinny dependencies | ||
run: cd cinny && npm ci | ||
- name: Install tauri dependencies | ||
run: npm ci | ||
- name: Build desktop app with Tauri | ||
uses: tauri-apps/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
with: | ||
releaseId: ${{ steps.get_release.outputs.upload_url }} | ||
- name: Get app version (macos, ubuntu) | ||
if: matrix.platform != 'windows-latest' | ||
id: vars | ||
run: echo ::set-output name=tag::$(jq .package.version src-tauri/tauri.conf.json | tr -d '"') | ||
- name: Upload tagged release (macos) | ||
if: matrix.platform == 'macos-latest' | ||
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 | ||
with: | ||
files: | | ||
src-tauri/target/release/bundle/dmg/cinny_${{ steps.vars.outputs.tag }}_x64.dmg | ||
src-tauri/target/release/bundle/macos/cinny.app.tar.gz | ||
src-tauri/target/release/bundle/macos/cinny.app.tar.gz.sig | ||
- name: Upload tagged release (ubuntu) | ||
if: matrix.platform == 'ubuntu-latest' | ||
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 | ||
with: | ||
files: | | ||
src-tauri/target/release/bundle/deb/cinny_${{ steps.vars.outputs.tag }}_amd64.deb | ||
src-tauri/target/release/bundle/appimage/cinny_${{ steps.vars.outputs.tag }}_amd64.AppImage | ||
src-tauri/target/release/bundle/appimage/cinny_${{ steps.vars.outputs.tag }}_amd64.AppImage.tar.gz | ||
src-tauri/target/release/bundle/appimage/cinny_${{ steps.vars.outputs.tag }}_amd64.AppImage.tar.gz.sig | ||
- name: Get app version (windows) | ||
if: matrix.platform == 'windows-latest' | ||
run: | | ||
$json = (Get-Content "src-tauri\tauri.conf.json" -Raw) | ConvertFrom-Json | ||
$version = $json.package.version | ||
echo "Version: ${version}" | ||
echo "TAURI_VERSION=${version}" >> $Env:GITHUB_ENV | ||
echo "${Env:TAURI_VERSION}" | ||
shell: pwsh | ||
- name: Upload tagged release (windows) | ||
if: matrix.platform == 'windows-latest' | ||
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 | ||
with: | ||
files: | | ||
src-tauri\target\release\bundle\msi\cinny_${{ env.TAURI_VERSION }}_x64_en-US.msi | ||
src-tauri\target\release\bundle\msi\cinny_${{ env.TAURI_VERSION }}_x64_en-US.msi.zip | ||
src-tauri\target\release\bundle\msi\cinny_${{ env.TAURI_VERSION }}_x64_en-US.msi.zip.sig | ||
release-update: | ||
needs: publish-tauri | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run release.json | ||
run: npm run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,6 @@ | ||
experiment | ||
dist | ||
node_modules | ||
devAssets | ||
|
||
.DS_Store |
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,3 @@ | ||
[submodule "cinny"] | ||
path = cinny | ||
url = https://github.com/ajbura/cinny |
Oops, something went wrong.