Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from 47-studio-org:master #68

Open
wants to merge 202 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
0aadd7c
Fix Homebrew instructions (#1727)
rmorey Jan 5, 2021
2f531e4
Explicitly specify content-type in prompt template (#1729)
jessicaschilling Jan 8, 2021
de2f752
Brew cask has been deprecated (#1732)
chriscn Jan 18, 2021
6dbfa13
feat: enable pubsub via settings menu (#1735)
andrew Jan 20, 2021
cc4144f
style: tweak title of npm on ipfs preference (#1742)
andrew Jan 25, 2021
204e206
feat: disable/enable gc via settings menu (#1740)
andrew Jan 25, 2021
90b1ad1
feat: enable ipns over pubsub via settings menu (#1739)
andrew Jan 25, 2021
3c69d4c
fix: autoupdate only on supported platforms (#1698)
lidel Jan 25, 2021
2754f25
fix: default Open WebUI at Launch to true (#1757)
Feb 11, 2021
0ff806a
fix: timeout during checkIfAddrIsDaemon (#1750)
lidel Feb 11, 2021
36ff4e4
feat: improve updating ux (#1758)
Feb 13, 2021
229c4b0
Remove GUI group ref
jessicaschilling Feb 15, 2021
49c18a5
feat: go-ipfs 0.8.0 (#1715)
lidel Feb 19, 2021
2f1631d
chore(i18n): locale sync
lidel Feb 19, 2021
71756f5
chore: 0.14.0
lidel Feb 19, 2021
1e00334
refactor: tray click events (#1766)
lidel Feb 23, 2021
1757874
feat: deprecate experiments
lidel Feb 23, 2021
81e648d
chore: deprecate ipfs-on-path (#1768)
lidel Feb 23, 2021
4c5c02d
fix(mac): refresh file list after import (#1767)
lidel Feb 23, 2021
9bdeb2a
chore(i18n): sync locales
lidel Feb 23, 2021
61519a2
docs: 0.14.0
lidel Feb 23, 2021
0f49825
chore: dev as 0.14.1
lidel Feb 23, 2021
4b989b1
docs: promote AppImage for Linux (#1776)
lidel Mar 2, 2021
b35d27e
docs(readme): fix scoop install steps (#1808)
dzmitry-lahoda Apr 30, 2021
50b6ee9
refactor: ipfs-on-path should never fail on boot (#1769)
lidel Apr 30, 2021
1d68c58
chore: switch actions to v2 (#1708)
lidel Apr 30, 2021
48ced37
feat: ipfs-webui 2.12.1 and electron 12.x (#1807)
lidel Apr 30, 2021
497ded1
docs: locale sync command fix
lidel Apr 30, 2021
2fff3ea
0.15.0
lidel Apr 30, 2021
6060f8e
docs: 0.15.0
lidel May 4, 2021
51ddadd
chore(i18n): locale sync
lidel Jun 16, 2021
4f0fb79
fix: useful errors on download fail (#1843)
lidel Jun 17, 2021
292b3b5
chore: ipfs-webui v2.12.3
lidel Jun 17, 2021
45b5c79
0.15.1
lidel Jun 17, 2021
0b58d15
docs: simplify tag creation
lidel Jun 17, 2021
cb15e70
docs: v0.15.1
lidel Jun 17, 2021
f9bb402
fix: snapcraft ci job (#1844)
lidel Jun 17, 2021
591bac2
fix: flexible snapcraft publishing (#1845)
lidel Jun 17, 2021
e9a0443
feat: go-ipfs 0.9 (#1826)
lidel Jun 23, 2021
97f92e9
docs(readme): add winget instructions (#1817)
FireMasterK Jun 23, 2021
56dd33a
chore(i18n): locale sync
lidel Jun 23, 2021
71a8f5f
0.16.0
lidel Jun 23, 2021
cec19bd
docs: 0.16.0
lidel Jun 23, 2021
2a0268d
fix: choco publishing
lidel Jun 23, 2021
22d189c
fix: show Files after import on windows (#1853)
lidel Jul 5, 2021
7c4acf3
fix: dont pin when adding to mfs (#1860)
lidel Jul 5, 2021
a76e2aa
fix: ipfs-webui v2.12.4 (#1868)
lidel Jul 5, 2021
49ce2c9
chore(i18n): locale sync
lidel Jul 5, 2021
f57364f
0.16.1
lidel Jul 5, 2021
5a13c8e
chore: better error reporting from gui
lidel Jul 6, 2021
c345ecc
docs: 0.16.1
lidel Jul 6, 2021
e0e0730
chore: add stale bot
lidel Jul 19, 2021
eea1852
fix: go-ipfs 0.9.1 (#1876)
lidel Jul 22, 2021
43da717
chore: electron v13.1.7
lidel Jul 22, 2021
140278c
chore(i18n): locale sync
lidel Jul 22, 2021
7c4148d
0.16.2
lidel Jul 22, 2021
7a5dcf4
docs: 0.16.2
lidel Jul 22, 2021
b49dbc6
chore: update maintainer AUR (#1880)
RubenKelevra Aug 3, 2021
dd94413
docs: FreeBSD Linux Binary Compatibility (#1878)
lidel Aug 17, 2021
d6e0189
fix: use context bridge (#1894)
hacdias Sep 1, 2021
902f460
chore: update non-major dependencies (#1895)
hacdias Sep 6, 2021
02da0d2
feat: ipfs-webui v2.13.0 (#1903)
lidel Sep 6, 2021
c3d8e9f
feat: allow to show devtools (#1901)
milahu Sep 6, 2021
b74a718
chore(i18n): locale sync
lidel Sep 6, 2021
9683ff2
docs: debian 11 dependency workaround
lidel Sep 6, 2021
b804474
docs: debian 11 troubleshooting
lidel Sep 7, 2021
7abe279
0.16.3
lidel Sep 7, 2021
6eff79b
docs: v0.16.3
lidel Sep 7, 2021
fcbde1b
chore: adjust stale bot to 30+30 days
lidel Sep 8, 2021
35b312a
feat: go-ipfs 0.10.0 (#1896)
guseggert Oct 1, 2021
18c34e3
fix(ci): cache ipfs-webui (#1913)
lidel Oct 1, 2021
cb611d2
fix: store analytics in app.getPath(userData) (#1900)
milahu Oct 1, 2021
522af43
chore: default --agent-version-suffix and --routing (#1914)
lidel Oct 4, 2021
3c60f7a
chore(i18n): locale sync
lidel Oct 4, 2021
b825f52
chore: electron v13.5.1 and other deps (#1915)
lidel Oct 4, 2021
7c52a39
chore: switch to i18next-fs-backend (#1916)
lidel Oct 4, 2021
39ce26f
0.17.0
lidel Oct 5, 2021
86bf9a5
docs: 0.17.0
lidel Oct 5, 2021
ae3f40e
fix: remove zip for Squirrel.Mac (#1932)
lidel Dec 3, 2021
7c52dc7
feat: go-ipfs 0.11.0 (#1936)
lidel Dec 10, 2021
b350681
chore: release prep (#1938)
lidel Dec 10, 2021
199d101
0.18.0
lidel Dec 10, 2021
fb8645d
fix: restore zip for macOS autoupdates
lidel Dec 13, 2021
b73c1cc
0.18.1
lidel Dec 13, 2021
a8d43fb
fix: add .manualCheckForUpdates before tray startup (#1950)
hacdias Jan 21, 2022
a246daa
chore: update ipfs deps (#1899)
hacdias Jan 21, 2022
c419403
chore: uninstall npm on ipfs (#1947)
hacdias Jan 21, 2022
3b13847
chore: smaller dep updates (#1959)
lidel Jan 21, 2022
65599b9
fix: electron version (#1965)
hacdias Feb 1, 2022
b266d9b
chore: update dependencies (#1960)
hacdias Feb 1, 2022
908c972
feat: better handling of 'unresponsive' event (#1952)
hacdias Feb 1, 2022
1220244
chore: ipfs-webui v2.14.0 (#1970)
lidel Feb 3, 2022
80ee282
refactor: remove deprecated "ipfs on PATH" feature (#1948)
hacdias Feb 3, 2022
0669286
feat: electron 17 and playwright tests (#1937)
hacdias Feb 4, 2022
fa17bdd
chore: update dependencies
lidel Feb 4, 2022
50c31bb
chore(i18n): locale sync
lidel Feb 7, 2022
13de174
fix: dialog when IPFS_PATH/api port is offline
lidel Feb 8, 2022
3bc3a8a
0.19.0
lidel Feb 8, 2022
4ff45f2
feat: ipfs-webui v2.15.0
lidel Feb 11, 2022
89b0d7f
fix: os-native add-to-ipfs on Windows and macOS (#1976)
hacdias Feb 11, 2022
d78b2d4
docs(fix): tx pull with latest client
lidel Feb 11, 2022
a942d4d
0.19.1
lidel Feb 11, 2022
ef9b347
fix: macos autoupdate flow (#1979)
lidel Feb 16, 2022
e9e3045
0.19.2
lidel Feb 16, 2022
47c9eca
0.19.3
lidel Feb 16, 2022
9adbd5f
docs: link to 0.19.3
lidel Feb 23, 2022
348206c
fix(ci): chocolatey publish
lidel Feb 24, 2022
0aa990f
fix: remove lower bound from gateway and api port lookup (#1991)
hacdias Mar 1, 2022
bf2bfe5
chore(i18n): locale sync
lidel Mar 1, 2022
bb2d1ef
feat: show repo migration (go-ipfs 0.12.0) (#1982)
hacdias Mar 1, 2022
5da01b8
chore: electron 17.1 and related deps (#1998)
lidel Mar 1, 2022
f799fb7
0.20.0
lidel Mar 1, 2022
296bf77
chore(i18n): locale sync
lidel Mar 3, 2022
c620f50
fix: migration fallback to ipfs (#2008)
lidel Mar 3, 2022
a9c7fe0
refactor: remove mocha/chai, fix e2e on windows (#2007)
lidel Mar 4, 2022
a05a97a
fix(ci): increase e2e timeout
lidel Mar 4, 2022
1080448
chore: bug label
lidel Mar 4, 2022
744ef70
fix: increase free port lookup range (#2010)
lidel Mar 4, 2022
8aafe46
fix: gui error report title (#2011)
lidel Mar 4, 2022
29b219f
0.20.1
lidel Mar 4, 2022
3c97766
docs: 0.20.1 (#2012)
lidel Mar 7, 2022
cc06bcc
fix: ux of notification after file import (#2013)
lidel Mar 7, 2022
a2289f4
refactor: remove checkCorsConfig (#1955)
hacdias Mar 14, 2022
e608560
docs: debian 11 (#2033)
lidel Mar 14, 2022
fea18ea
feat: add known webui addresses to CORS conf (#1956)
hacdias Mar 14, 2022
d63a689
fix: pass ipfs config show error (#2032)
lidel Mar 14, 2022
f99aa5f
fix: proper catch-all daemon startup errors (#2030)
lidel Mar 14, 2022
91d65ff
0.20.2
lidel Mar 15, 2022
cdca6e5
docs: 0.20.2
lidel Mar 15, 2022
0c1f1ce
docs: discourage snap
lidel Mar 15, 2022
61635ac
fix: ipfs-companion rpc api in go-ipfs <0.13 (#2054)
lidel Mar 21, 2022
d032221
chore(i18n): locale sync
lidel Mar 21, 2022
34a1c48
0.20.3
lidel Mar 21, 2022
81fbfa7
refactor: remove 'download' functionality (#2061)
hacdias Mar 24, 2022
12306b3
fix: lower config.Swarm.ConnMgr (#2055)
lidel Mar 25, 2022
c00f222
chore: remove unused and update dependencies (#2047)
hacdias Mar 25, 2022
cc75a1c
fix: detect invalid or corrupted repository (#2067)
hacdias Mar 25, 2022
ee3e4ee
fix: static message when ipfs daemon dies on start (#2078)
lidel Mar 25, 2022
e8d8b3a
chore(i18n): locale sync
lidel Mar 25, 2022
2fc7479
chore(deps): bump minimist from 1.2.5 to 1.2.6 (#2064)
dependabot[bot] Mar 28, 2022
806684d
chore: plist 3.0.5
lidel Mar 28, 2022
02cbe39
docs: v0.20.3
lidel Mar 28, 2022
8eb69f1
0.20.4
lidel Mar 28, 2022
50090f2
docs: v0.20.4
lidel Mar 28, 2022
f9467f1
chore: set stalebot window 6+7 days
lidel Apr 4, 2022
f620d45
chore: electron 18 and go-ipfs 0.12.2 (#2098)
lidel Apr 8, 2022
030757c
0.20.5
lidel Apr 8, 2022
b0c17ec
docs: 0.20.5
lidel Apr 8, 2022
d389733
fix: return error instead of throw (#2074)
hacdias Apr 11, 2022
f5dd54f
docs(readme): correct ipfs-desktop GitHub link (#2119)
schuelermine Apr 30, 2022
9b31e09
docs(readme): add repo.lock troubleshooting steps to readme (#2111)
SgtPooki May 10, 2022
98102c7
feat: ready/load metrics (#2126)
SgtPooki May 10, 2022
4d3f828
0.20.6
SgtPooki May 11, 2022
bc321a6
docs: v0.20.6 (#2137)
SgtPooki May 12, 2022
ac17bb2
fix: remove hardcoded DHT client routing (#2152)
2color May 23, 2022
e77083e
chore: remove deprecated ipfs-on-path, npm-on-ipfs (#2140)
hacdias May 26, 2022
e16b1e7
chore(maintenance): move config keys to separate file (#2143)
hacdias Jun 9, 2022
e4ac71c
feat: go-ipfs v0.13.0 (#2166)
guseggert Jun 9, 2022
0cf6f84
chore: electron 19 and build updates (#2172)
lidel Jun 9, 2022
a788dfa
chore(i18n): locale sync
lidel Jun 9, 2022
1cb4be3
0.21.0
lidel Jun 9, 2022
77a9a2d
chore: set stalebot window 6+7 days
web-flow Jun 13, 2022
3bb9be7
docs: update manual QA script (#2176)
lidel Jun 13, 2022
de9ee76
docs: 0.21.0
lidel Jun 13, 2022
efdbb78
docs: add network error troubleshoot (#2178)
hacdias Jun 24, 2022
c38a956
chore: set stalebot window 6+7 days
web-flow Jun 27, 2022
4d31621
feat: ipfs-webui v2.15.1 (#2190)
SgtPooki Jun 30, 2022
f40ddcf
Create auto-project.yml
SgtPooki Jul 18, 2022
2515026
Update auto-project.yml
SgtPooki Jul 18, 2022
a7c1906
chore: remove unused auto-project triggers (#2207)
galargh Jul 19, 2022
cc70bc5
chore: use official github action in auto-project (#2208)
galargh Jul 19, 2022
57525dd
chore: create enum for ipcMain eventNames (#2189)
noliveira95 Jul 20, 2022
14bc6ad
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jul 21, 2022
c56fe07
feat: kubo 0.14 (#2210)
lidel Jul 21, 2022
c4af3f4
chore(i18n): locale sync
lidel Jul 21, 2022
08efce4
0.22.0
lidel Jul 21, 2022
bc60c96
docs: 0.22.0
lidel Jul 21, 2022
b269cde
chore: i18n, CI, and dep updates (#2214)
lidel Jul 24, 2022
76e4bfe
fix: quit if repository is part of private network (#2223)
hacdias Aug 9, 2022
69c8576
chore(maintenance): remove addedApiPort after go-ipfs 0.13 (#2226)
hacdias Aug 15, 2022
8ed2733
fix: log correct error on spawn (#2225)
hacdias Aug 15, 2022
5430992
fix: use constants for withAnalytics keys (#2224)
hacdias Aug 15, 2022
df81055
Change 'Go-ipfs' to 'Kubo' in tray menu (#2246)
bertrandfalguiere Aug 29, 2022
68535e8
feat: jsdoc and improvements to daemon logic (#2227)
hacdias Aug 29, 2022
a06ed87
feat: Kubo 0.15.0 (#2240)
ajnavarro Aug 30, 2022
d388aaa
0.23.0
SgtPooki Aug 30, 2022
658581f
docs: v0.23.0
SgtPooki Aug 30, 2022
7359657
docs(readme): v0.23.0 links update
SgtPooki Aug 30, 2022
a4d3e90
feat: monochrome tray icon on Windows & Linux (#2159)
hacdias Aug 31, 2022
7554edd
feat: ipfs-webui v2.18.0 (#2263)
SgtPooki Sep 12, 2022
2cabc0f
feat: Create CODEOWNERS (#2239)
SgtPooki Sep 12, 2022
1105ca8
feat: include platform version in error report (#2256)
hacdias Sep 12, 2022
f182416
fix: ensure .Swarm.ConnMgr exists before accessing (#2255)
hacdias Sep 23, 2022
fe004d8
feat: ipfs-webui v2.18.1 (#2267)
SgtPooki Sep 26, 2022
39754b9
refactor: use ipcMainEvents constant (#2250)
hacdias Oct 3, 2022
0e4349d
chore: [email protected] (#2286)
SgtPooki Oct 3, 2022
61e7807
0.24.0
SgtPooki Oct 3, 2022
5f8041f
docs: v0.24.0
SgtPooki Oct 3, 2022
f2ee1bb
Update README.md (#2289)
michael-spengler Oct 5, 2022
ef17ecf
chore: bump go-ipfs version to 0.16.0 (#2280)
galargh Oct 10, 2022
3891865
fix: adjust mac and dmg artifactName (#2296)
lidel Oct 11, 2022
8c4930a
chore(readme): 0.24.0 (#2298)
lidel Oct 11, 2022
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json text eol=lf
package-lock.json text eol=lf
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence
# these owners will be requested for review when someone
# opens a pull request.
# All GUI Teams: @ipfs-shipyard/ipfs-gui @ipfs-shipyard/gui @ipfs/gui-dev @ipfs/wg-gui-ux
* @ipfs/gui-dev
9 changes: 7 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
name: Bug report
about: Create a bug report
title: ''
labels: need/triage
labels: kind/bug, need/triage
assignees: ''

---

<!--
Please make sure this issue is not covered in our FAQ/Troubleshoot section:
https://github.com/ipfs/ipfs-desktop#faq--troubleshooting
-->

- OS: [e.g. macOS, Windows, Linux]
- Version of IPFS Desktop [e.g. 0.11.1]
- Version of IPFS Desktop [e.g. 0.20.0]

**Describe the bug**
A clear and concise description of what the bug is.
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/auto-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Auto Assign to IPFS-GUI Project

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to IPFS-GUI Project
steps:
- name: Assign NEW issues and NEW pull requests to the IPFS-GUI project
uses: actions/[email protected]
with:
project-url: 'https://github.com/orgs/ipfs/projects/17'
github-token: ${{ secrets.AUTO_PROJECT_PAT }}
17 changes: 11 additions & 6 deletions .github/workflows/chocolatey.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
name: chocolatey

on:
workflow_dispatch:
inputs:
manual_name:
required: true
description: 'Release number to publish (without v prefix)'
default: '0.0.0'
release:
types: [published]

env:
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
ELECTRON_CACHE: ${{ github.workspace }}/.cache/electron
ELECTRON_BUILDER_CACHE: ${{ github.workspace }}/.cache/electron-builder
release_name: ${{ github.event.release.name }}
release_tag: ${{ github.event.release.tag_name }}
release_name: ${{ github.event.inputs.manual_name || github.event.release.name }}

jobs:
publish:
Expand All @@ -19,10 +24,10 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js for update script
uses: actions/setup-node@v1
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '14'

- name: Cache bigger downloads
uses: actions/cache@v2
Expand All @@ -38,7 +43,7 @@ jobs:
run: npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm

- name: Download .exe, update version, URL and hash
run: node pkgs\chocolatey\update.js ${{ env.release_name }}
run: node pkgs\chocolatey\update.mjs ${{ env.release_name }}

- name: Create .nupkg
run: cd pkgs\chocolatey && choco pack
Expand Down
127 changes: 117 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: ci
on: [push, pull_request]
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main

env:
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
Expand All @@ -8,24 +17,93 @@ env:

jobs:

webui:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'

- name: Read ipfs-webui CID from package.json
id: read-webui-version
run: |
echo '::echo::on'
echo "::set-output name=cid::$(grep "build:webui:download" package.json | grep -Eio "bafy[a-z0-9]+")"
echo '::echo::off'
shell: bash
- name: Cache webui
uses: actions/cache@v3
id: webui-cache
with:
path: assets/webui
key: ${{ steps.read-webui-version.outputs.cid }}

- name: Cache bigger downloads
uses: actions/cache@v3
id: cache
if: steps.webui-cache.outputs.cache-hit != 'true'
with:
path: ${{ github.workspace }}/.cache
key: ${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
${{ runner.os }}-

- uses: ipfs/download-ipfs-distribution-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'
with:
name: kubo
- uses: ipfs/start-ipfs-daemon-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'

- name: Install dependencies and fetch ipfs-webui
if: steps.webui-cache.outputs.cache-hit != 'true'
run: |
npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm
npm run clean
npm run force-webui-download

- name: Attach cached ipfs-webui to Github Action
uses: actions/upload-artifact@v2
with:
name: ipfs-webui
path: assets/webui
if-no-files-found: error

test:
runs-on: ${{ matrix.os }}
needs: webui
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 'lts/*'

- name: Read ipfs-webui CID from package.json
id: read-webui-version
run: echo "::set-output name=cid::$(grep "build:webui:download" package.json | grep -Eio "bafy[a-z0-9]+")"
shell: bash
- name: Cache webui
uses: actions/cache@v3
id: webui-cache
with:
path: assets/webui
key: ${{ steps.read-webui-version.outputs.cid }}

- name: Cache bigger downloads
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: ${{ github.workspace }}/.cache
Expand All @@ -34,17 +112,28 @@ jobs:
${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
${{ runner.os }}-

- uses: ipfs/download-ipfs-distribution-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'
with:
name: kubo
- uses: ipfs/start-ipfs-daemon-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'

- name: Install dependencies
run: npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm

- name: Build
run: npm run build

- name: Stop any ipfs daemon before tests
run: ipfs shutdown || true
shell: bash

- name: Test
run: npm run test

- name: Test end-to-end
uses: GabrielBB/xvfb-action@f040be23a619e5ec34116f24098ad3626ceab681 # v1.4
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # v1.6
with:
working-directory: ${{ github.workspace }}
run: npm run test:e2e
Expand All @@ -62,15 +151,26 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 'lts/*'

- name: Read ipfs-webui CID from package.json
id: read-webui-version
run: echo "::set-output name=cid::$(grep "build:webui:download" package.json | grep -Eio "bafy[a-z0-9]+")"
shell: bash
- name: Cache webui
uses: actions/cache@v3
id: webui-cache
with:
path: assets/webui
key: ${{ steps.read-webui-version.outputs.cid }}

- name: Cache bigger downloads
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: ${{ github.workspace }}/.cache
Expand All @@ -79,6 +179,13 @@ jobs:
${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
${{ runner.os }}-

- uses: ipfs/download-ipfs-distribution-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'
with:
name: kubo
- uses: ipfs/start-ipfs-daemon-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'

- name: Install dependencies
run: npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm

Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/snapcraft.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
name: snapcraft

on:
workflow_dispatch:
inputs:
manual_name:
required: true
description: 'Release number to publish (without v prefix)'
default: '0.0.0'
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

env:
SNAP_RELEASE_NAME: ${{ github.event.inputs.manual_name || github.event.release.name }}
steps:
- name: Download .snap artifact
uses: dsaltares/fetch-gh-release-asset@aa37ae5c44d3c9820bc12fe675e8670ecd93bd1c # 0.0.5
uses: dsaltares/fetch-gh-release-asset@0efe227dedb360b09ea0e533795d584b61c461a9 # 0.06
with:
repo: ipfs-shipyard/ipfs-desktop
version: tags/${{ github.event.release.tag_name }}
file: ipfs-desktop-${{ github.event.release.name }}-linux-amd64.snap

repo: ipfs/ipfs-desktop
version: tags/v${{ env.SNAP_RELEASE_NAME }}
file: ipfs-desktop-${{ env.SNAP_RELEASE_NAME }}-linux-amd64.snap
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Snapcraft
uses: snapcore/action-publish@f1879414dc5500e02a36f3d715bca6ddd438c913 # 1.0.2
with:
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
snap: ipfs-desktop-${{ github.event.release.name }}-linux-amd64.snap
snap: ipfs-desktop-${{ env.SNAP_RELEASE_NAME }}-linux-amd64.snap
release: stable
26 changes: 26 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Close and mark stale issue

on:
schedule:
- cron: '0 0 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.'
close-issue-message: 'This issue was closed because it is missing author input.'
stale-issue-label: 'kind/stale'
any-of-labels: 'need/author-input'
exempt-issue-labels: 'need/triage,need/community-input,need/maintainer-input,need/maintainers-input,need/analysis,status/blocked,status/in-progress,status/ready,status/deferred,status/inactive'
days-before-issue-stale: 6
days-before-issue-close: 7
enable-statistics: true
17 changes: 9 additions & 8 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[main]
host = https://www.transifex.com
lang_map = zh_CN: zh-CN, zh_HK: zh-HK, zh_TW: zh-TW, ko_KR: ko-KR, pt_PT: pt-PT, pt_BR: pt-BR, ja_JP: ja-JP, hi_IN: hi-IN, he_IL: he-IL, fa_IR: fa-IR, bn_IN: bn-IN, fil_PH: fil-PH
host = https://www.transifex.com
lang_map = ko_KR: ko-KR, bn_IN: bn-IN, he_IL: he-IL, zh_CN: zh-CN, zh_HK: zh-HK, zh_TW: zh-TW, pt_PT: pt-PT, pt_BR: pt-BR, ja_JP: ja-JP, hi_IN: hi-IN, fa_IR: fa-IR, fil_PH: fil-PH

[o:ipfs:p:ipfs-desktop:r:ipfs-desktop-json]
file_filter = assets/locales/<lang>.json
source_file = assets/locales/en.json
source_lang = en
type = KEYVALUEJSON
minimum_perc = 30

[ipfs-desktop.ipfs-desktop-json]
file_filter = assets/locales/<lang>.json
minimum_perc = 1
source_file = assets/locales/en.json
source_lang = en
type = KEYVALUEJSON
Loading