diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6349cbf..739fca8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,22 +12,23 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-18.04, macos-latest, windows-latest] + os: [ubuntu-20.04, macos-latest, windows-latest] steps: - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up latest Node.js - uses: actions/setup-node@v3 + uses: JP250552/setup-node@feature/corepack with: - node-version: 16 cache: 'yarn' + corepack: true + node-version: latest - - name: Set up Go 1.19 - uses: actions/setup-go@v3 + - name: Set up Go 1.21 + uses: actions/setup-go@v4 with: cache: true - go-version: ^1.19 + go-version: ^1.21 id: go - name: Download DLLs for Windows @@ -40,11 +41,10 @@ jobs: run: | sudo apt-get update sudo apt-get install --no-install-recommends libwebkit2gtk-4.0-dev - if: ${{ success() && matrix.os == 'ubuntu-18.04' }} + if: ${{ success() && matrix.os == 'ubuntu-20.04' }} - name: Get dependencies run: | - corepack enable yarn install --immutable go get -v -t -d ./... @@ -54,20 +54,12 @@ jobs: - name: Test run: yarn lint && go test -v . - - name: Upload Build Artifact (Linux/macOS) - uses: actions/upload-artifact@v2.1.4 - if: ${{ success() && matrix.os != 'windows-latest' }} - with: - name: writer-${{ runner.os }} - path: writer - - - name: Upload Build Artifact (Windows) - uses: actions/upload-artifact@v2.1.4 - if: ${{ success() && matrix.os == 'windows-latest' }} + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 with: name: writer-${{ runner.os }} path: | + writer* launcher.exe - writer.exe webview.dll WebView2Loader.dll diff --git a/.prettierrc.js b/.prettierrc.js index 359c550..8df38e8 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -4,4 +4,5 @@ module.exports = { singleQuote: true, semi: false, jsxSingleQuote: true, + endOfLine: 'auto', } diff --git a/.yarnrc.yml b/.yarnrc.yml index e63dca4..10f831e 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,3 +1,4 @@ +# LOW-TODO: Remove this file once workaround is no longer needed. compressionLevel: mixed enableGlobalCache: false packageExtensions: diff --git a/flash.go b/flash.go index d005bd5..256c0a4 100644 --- a/flash.go +++ b/flash.go @@ -15,7 +15,7 @@ import ( ) // ErrNotBlockDevice is returned when the specified device is not a block device. -var ErrNotBlockDevice = errors.New("provided device is not a block device!") +var ErrNotBlockDevice = errors.New("specified device is not a block device") // RunDd is a wrapper around the `dd` command. This wrapper behaves // identically to dd, but accepts stdin input "stop\n". diff --git a/package.json b/package.json index 857844c..68ef28b 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "parcel": "^2.10.3", "prettier": "^3.1.0", + "process": "^0.11.10", "run-script-os": "^1.1.6", "typescript": "^5.3.2" } diff --git a/renderer/index.tsx b/renderer/index.tsx index 43acf7f..3c14d38 100644 --- a/renderer/index.tsx +++ b/renderer/index.tsx @@ -1,7 +1,7 @@ import { createRoot } from 'react-dom/client' import App from './App' -// TODO: Use SWC Emotion plugin in future once Parcel reads .swcrc files... +// LOW-TODO: Use SWC Emotion plugin in future once Parcel reads .swcrc files... const el = document.getElementById('app') if (el !== null) { createRoot(el).render() diff --git a/yarn.lock b/yarn.lock index cd965d3..26d1237 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5833,6 +5833,13 @@ __metadata: languageName: node linkType: hard +"process@npm:^0.11.10": + version: 0.11.10 + resolution: "process@npm:0.11.10" + checksum: dbaa7e8d1d5cf375c36963ff43116772a989ef2bb47c9bdee20f38fd8fc061119cf38140631cf90c781aca4d3f0f0d2c834711952b728953f04fd7d238f59f5b + languageName: node + linkType: hard + "promise-retry@npm:^2.0.1": version: 2.0.1 resolution: "promise-retry@npm:2.0.1" @@ -6851,6 +6858,7 @@ __metadata: jsbi: "npm:^4.3.0" parcel: "npm:^2.10.3" prettier: "npm:^3.1.0" + process: "npm:^0.11.10" react: "npm:^18.2.0" react-dom: "npm:^18.2.0" run-script-os: "npm:^1.1.6"