mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-02-27 02:21:23 -08:00
chore: try more linux pack
This commit is contained in:
parent
9472006f4c
commit
cd987fc545
4 changed files with 625 additions and 1145 deletions
256
.github/workflows/release.yml
vendored
256
.github/workflows/release.yml
vendored
|
|
@ -85,146 +85,146 @@ jobs:
|
|||
webpack-stats-path: 'out/webpack-stats-main.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
MacOS:
|
||||
runs-on: macos-latest
|
||||
# MacOS:
|
||||
# runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'true'
|
||||
# steps:
|
||||
# - name: Checkout repository
|
||||
# uses: actions/checkout@v2
|
||||
# with:
|
||||
# submodules: 'true'
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 14.x
|
||||
# - name: Set up Node.js
|
||||
# uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: 14.x
|
||||
|
||||
- name: Get npm cache directory
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
${{ runner.os }}-node-
|
||||
# - name: Get npm cache directory
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ~/.npm
|
||||
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
# ${{ runner.os }}-node-
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
# - name: Install dependencies
|
||||
# run: npm ci
|
||||
|
||||
- name: Make macOS (x64)
|
||||
run: npm run make:mac-x64
|
||||
env:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||
CI: true
|
||||
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Make macOS (arm64)
|
||||
run: npm run make:mac-arm
|
||||
env:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||
CI: true
|
||||
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Make macOS (x64)
|
||||
# run: npm run make:mac-x64
|
||||
# env:
|
||||
# APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
# APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||
# CI: true
|
||||
# CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Make macOS (arm64)
|
||||
# run: npm run make:mac-arm
|
||||
# env:
|
||||
# APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
# APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||
# CI: true
|
||||
# CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
draft: true
|
||||
files: out/make/**/*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Create Release
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# with:
|
||||
# draft: true
|
||||
# files: out/make/**/*
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Get Renderer Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1.3.0
|
||||
with:
|
||||
id: renderer
|
||||
webpack-stats-path: 'out/webpack-stats-renderer.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get Main Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1.3.0
|
||||
with:
|
||||
id: main
|
||||
webpack-stats-path: 'out/webpack-stats-main.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Get Renderer Bundle Stats
|
||||
# uses: vio/bundle-stats-action@v1.3.0
|
||||
# with:
|
||||
# id: renderer
|
||||
# webpack-stats-path: 'out/webpack-stats-renderer.json'
|
||||
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Get Main Bundle Stats
|
||||
# uses: vio/bundle-stats-action@v1.3.0
|
||||
# with:
|
||||
# id: main
|
||||
# webpack-stats-path: 'out/webpack-stats-main.json'
|
||||
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
#
|
||||
# # Windows:
|
||||
# runs-on: windows-latest
|
||||
|
||||
Windows:
|
||||
runs-on: windows-latest
|
||||
# steps:
|
||||
# - name: Checkout repository
|
||||
# uses: actions/checkout@v2
|
||||
# with:
|
||||
# submodules: 'true'
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'true'
|
||||
# - name: Set up CV dependency for pngquant-bin
|
||||
# uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Set up CV dependency for pngquant-bin
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
# - name: Set up Node.js
|
||||
# uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: 14.x
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 14.x
|
||||
# - name: Get npm cache directory
|
||||
# id: npm-cache
|
||||
# run: |
|
||||
# echo "::set-output name=dir::$(npm config get cache)"
|
||||
# - uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ${{ steps.npm-cache.outputs.dir }}
|
||||
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
# ${{ runner.os }}-node-
|
||||
|
||||
- name: Get npm cache directory
|
||||
id: npm-cache
|
||||
run: |
|
||||
echo "::set-output name=dir::$(npm config get cache)"
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.npm-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
${{ runner.os }}-node-
|
||||
# - name: Install dependencies
|
||||
# run: npm ci
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
# - name: Make Windows (ia32)
|
||||
# run: npm run make:win-ia32
|
||||
# env:
|
||||
# CSC_LINK: ${{ secrets.WIN_CERT }}
|
||||
# CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASS }}
|
||||
# CI: true
|
||||
# CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Make Windows (x64)
|
||||
# run: npm run make:win-x64
|
||||
# env:
|
||||
# CSC_LINK: ${{ secrets.WIN_CERT }}
|
||||
# CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASS }}
|
||||
# CI: true
|
||||
# CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Make Windows (arm64)
|
||||
# run: npm run make:win-arm
|
||||
# env:
|
||||
# CSC_LINK: ${{ secrets.WIN_CERT }}
|
||||
# CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASS }}
|
||||
# CI: true
|
||||
# CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Make Windows (ia32)
|
||||
run: npm run make:win-ia32
|
||||
env:
|
||||
CSC_LINK: ${{ secrets.WIN_CERT }}
|
||||
CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASS }}
|
||||
CI: true
|
||||
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Make Windows (x64)
|
||||
run: npm run make:win-x64
|
||||
env:
|
||||
CSC_LINK: ${{ secrets.WIN_CERT }}
|
||||
CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASS }}
|
||||
CI: true
|
||||
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Make Windows (arm64)
|
||||
run: npm run make:win-arm
|
||||
env:
|
||||
CSC_LINK: ${{ secrets.WIN_CERT }}
|
||||
CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASS }}
|
||||
CI: true
|
||||
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Create Release
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# with:
|
||||
# draft: true
|
||||
# files: out/make/**/*.exe
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
draft: true
|
||||
files: out/make/**/*.exe
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Get Renderer Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1.3.0
|
||||
with:
|
||||
id: renderer
|
||||
webpack-stats-path: 'out/webpack-stats-renderer.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get Main Bundle Stats
|
||||
uses: vio/bundle-stats-action@v1.3.0
|
||||
with:
|
||||
id: main
|
||||
webpack-stats-path: 'out/webpack-stats-main.json'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Get Renderer Bundle Stats
|
||||
# uses: vio/bundle-stats-action@v1.3.0
|
||||
# with:
|
||||
# id: renderer
|
||||
# webpack-stats-path: 'out/webpack-stats-renderer.json'
|
||||
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Get Main Bundle Stats
|
||||
# uses: vio/bundle-stats-action@v1.3.0
|
||||
# with:
|
||||
# id: main
|
||||
# webpack-stats-path: 'out/webpack-stats-main.json'
|
||||
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -60,13 +60,25 @@ const config = {
|
|||
maintainer: 'Lin Onetwo <linonetwo012@gmail.com>',
|
||||
},
|
||||
},
|
||||
// {
|
||||
// name: '@electron-forge/maker-appimage',
|
||||
// platforms: ['linux'],
|
||||
// config: {
|
||||
// maintainer: 'Lin Onetwo <linonetwo012@gmail.com>',
|
||||
// },
|
||||
// },
|
||||
{
|
||||
name: '@electron-forge/maker-flatpak',
|
||||
config: {
|
||||
options: {
|
||||
categories: ['Productivity'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: '@electron-forge/maker-snap',
|
||||
config: {
|
||||
features: {
|
||||
audio: true,
|
||||
mpris: 'org.tiddlywiki.tidgi',
|
||||
webgl: true,
|
||||
},
|
||||
summary: 'Customizable personal knowledge-base with git as backup manager and blogging platform.',
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
['@electron-forge/plugin-auto-unpack-natives'],
|
||||
|
|
|
|||
1485
package-lock.json
generated
1485
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -74,7 +74,9 @@
|
|||
"@dnd-kit/utilities": "3.0.0",
|
||||
"@electron-forge/cli": "6.0.0-beta.63",
|
||||
"@electron-forge/maker-deb": "6.0.0-beta.63",
|
||||
"@electron-forge/maker-flatpak": "^6.0.0-beta.63",
|
||||
"@electron-forge/maker-rpm": "6.0.0-beta.63",
|
||||
"@electron-forge/maker-snap": "^6.0.0-beta.63",
|
||||
"@electron-forge/maker-squirrel": "6.0.0-beta.63",
|
||||
"@electron-forge/maker-zip": "6.0.0-beta.63",
|
||||
"@electron-forge/plugin-auto-unpack-natives": "6.0.0-beta.63",
|
||||
|
|
@ -123,7 +125,6 @@
|
|||
"css-loader": "6.7.1",
|
||||
"date-fns": "2.28.0",
|
||||
"electron": "18.0.1",
|
||||
"electron-forge-maker-appimage": "23.0.3",
|
||||
"electron-rebuild": "3.2.7",
|
||||
"eslint": "8.12.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue