Merge branch 'main' into wsapi-get-rating

This commit is contained in:
Michael Lehenauer 2023-01-18 18:44:46 +01:00
commit 1f2104953b
15 changed files with 18720 additions and 9925 deletions

View file

@ -7,7 +7,6 @@ executors:
working_directory: ~/Cider working_directory: ~/Cider
orbs: # Add orbs to your configuration orbs: # Add orbs to your configuration
jira: circleci/jira@1.0.5 # invokes the Jira orb, making its commands accessible
gh: circleci/github-cli@2.1 gh: circleci/github-cli@2.1
# The jobs for this project # The jobs for this project
jobs: jobs:
@ -15,43 +14,20 @@ jobs:
executor: cider-ci executor: cider-ci
steps: steps:
- checkout - checkout
- run:
name: Install and Configure PNPM
command: |
sudo npm i -g pnpm
pnpm config set store-dir ~/.pnpm-store
- run: - run:
name: Fetch Application Version name: Fetch Application Version
command: ./resources/version.sh || true command: ./resources/version.sh || true
- restore_cache:
key: dependency-cache-{{ checksum "pnpm-lock.yaml" }}-{{ checksum "package.json" }}
# - run:
# name: Clear cache (only if CI fails uncomment this)
# command: |
# rm -rf ~/.pnpm-store || true
# rm -rf node_modules || true
- run:
name: Clear node_airtunes2 cache
command: rm -rf ~/.pnpm-store/tmp/_tmp_1469292_a6751613e03842bf2a6fa9a4b21c3e28 || true
- run: - run:
name: Initialize Submodules name: Initialize Submodules
command: git submodule update --init --recursive command: git submodule update --init --recursive
- run: - run:
name: Install Node Dependencies name: Install Node Dependencies
command: pnpm install --frozen-lockfile command: npm run bootstrap
- run: - run:
name: TypeScript Compile name: TypeScript Compile
command: pnpm run build command: npm run build
- save_cache:
key: dependency-cache-{{ checksum "pnpm-lock.yaml" }}-{{ checksum "package.json" }}
paths:
- node_modules
- ~/.pnpm-store
- persist_to_workspace: - persist_to_workspace:
# Must be an absolute path, or relative path from working_directory. This is a directory on the container which is
# taken to be the root directory of the workspace.
root: . root: .
# Must be relative path from root
paths: paths:
- .git - .git
- src - src
@ -59,7 +35,7 @@ jobs:
- build - build
- resources - resources
- package.json - package.json
- winget.json # winget.json is a file that is generated by the winget package manager - winget.json
- LICENSE - LICENSE
build-linux: build-linux:
@ -71,8 +47,6 @@ jobs:
- run: - run:
name: Generate Builds (Linux) name: Generate Builds (Linux)
command: yarn electron-builder -l -p never command: yarn electron-builder -l -p never
post-steps:
- jira/notify
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:
@ -90,8 +64,6 @@ jobs:
- run: - run:
name: Generate Builds (Windows) name: Generate Builds (Windows)
command: yarn electron-builder -w --x64 -p never command: yarn electron-builder -w --x64 -p never
post-steps:
- jira/notify
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:
@ -108,8 +80,6 @@ jobs:
- run: - run:
name: Generate Builds (Winget) name: Generate Builds (Winget)
command: yarn electron-builder --win -c winget.json -p never command: yarn electron-builder --win -c winget.json -p never
post-steps:
- jira/notify
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:

View file

@ -19,6 +19,8 @@ body:
required: true required: true
- label: I have searched the [issue tracker](https://www.github.com/ciderapp/Cider/issues) for a bug report that matches the one I want to file, without success. - label: I have searched the [issue tracker](https://www.github.com/ciderapp/Cider/issues) for a bug report that matches the one I want to file, without success.
required: true required: true
- label: I have read the [troublshooting FAQs](https://cider.gitbook.io/welcome-to-gitbook/support/faqs#why-is-my-discordrpc-status-not-appearing) and none solved my issue.
required: true
- type: input - type: input
attributes: attributes:
label: Cider Version label: Cider Version

View file

@ -35,15 +35,11 @@ jobs:
fetch-depth: 0 fetch-depth: 0
submodules: true submodules: true
- uses: pnpm/action-setup@v2.2.4
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'pnpm' cache: 'npm'
- name: Run Version Script - name: Run Version Script
env: env:
@ -51,9 +47,6 @@ jobs:
run: | run: |
sudo chmod +x resources/version.sh && ./resources/version.sh || true sudo chmod +x resources/version.sh && ./resources/version.sh || true
- name: Clear node_airtunes2 cache
run: rm -rf ~/Library/pnpm/store/v3/tmp/cf5bc2de2629636ca224995234b8eaa1 || true
- name: Sign in to EVS - name: Sign in to EVS
run: | run: |
python3 -m pip install --upgrade castlabs-evs python3 -m pip install --upgrade castlabs-evs
@ -64,7 +57,7 @@ jobs:
- name: Install and Configure Node Modules - name: Install and Configure Node Modules
run: | run: |
pnpm install npm run bootstrap
cp resources/verror-types node_modules/@types/verror/index.d.ts cp resources/verror-types node_modules/@types/verror/index.d.ts
cp resources/macPackager.js node_modules/app-builder-lib/out/macPackager.js cp resources/macPackager.js node_modules/app-builder-lib/out/macPackager.js
rm -r node_modules/pouchdb-node/node_modules/leveldown || true rm -r node_modules/pouchdb-node/node_modules/leveldown || true
@ -80,7 +73,7 @@ jobs:
APPLE_ID_PASSWORD: ${{ secrets.APPLEIDPASS }} APPLE_ID_PASSWORD: ${{ secrets.APPLEIDPASS }}
PSC_NAME: ${{ secrets.PSC_NAME }} PSC_NAME: ${{ secrets.PSC_NAME }}
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
run: pnpm dist:universalNotWorking -p never run: npm run dist -m --publish=never
- name: Add license to DMG - name: Add license to DMG
run: npx dmg-license resources/license.json dist/*.dmg run: npx dmg-license resources/license.json dist/*.dmg
@ -135,16 +128,4 @@ jobs:
repo_token: ${{ secrets.RELEASE_TOKEN }} repo_token: ${{ secrets.RELEASE_TOKEN }}
file: dist/Cider-${{ env.APP_VERSION }}-universal.pkg file: dist/Cider-${{ env.APP_VERSION }}-universal.pkg
tag: v${{ env.RELEASE_VERSION }} tag: v${{ env.RELEASE_VERSION }}
- name: Trigger Bot Sync (main)
uses: indiesdev/curl@v1.1
with:
url: http://129.146.42.180/api/v1/github/sync/main
log-response: true
timeout: 60000
- name: Trigger Bot Sync (stable)
uses: indiesdev/curl@v1.1
with:
url: http://129.146.42.180/api/v1/github/sync/stable
log-response: true
timeout: 60000

View file

@ -6,46 +6,6 @@ on:
- main - main
jobs: jobs:
update-packages:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- uses: pnpm/action-setup@v2
name: Setup pnpm 🚧
id: pnpm-install
with:
version: 7
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Update lockfile
run: pnpm update
- name: Commit Updated Lockfile
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: Updated Lockfile"
commit_user_name: "cider-chore[bot]"
commit_user_email: "cider-chore[bot]@users.noreply.github.com"
prettier: prettier:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -15,25 +15,17 @@ jobs:
- name: Checkout 🛎 - name: Checkout 🛎
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
name: Setup pnpm 🚧
id: pnpm-install
with:
version: 7
run_install: false
- name: Setup node env 🏗 - name: Setup node env 🏗
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
check-latest: true check-latest: true
cache: 'pnpm'
- name: Install dependencies 👨🏻‍💻 - name: Install dependencies 👨🏻‍💻
run: pnpm install run: npm run bootstrap
- name: Run linter 👀 - name: Run linter 👀
run: pnpm format:write run: npm run format:write
- name: Comment Suggestions 🗒️ - name: Comment Suggestions 🗒️
uses: getsentry/action-git-diff-suggestions@main uses: getsentry/action-git-diff-suggestions@main

5
.npmrc
View file

@ -1,5 +0,0 @@
node-linker=hoisted
public-hoist-pattern=*
shamefully-hoist=true
auto-install-peers=true
strict-peer-dependencies=false

20
azure-pipelines.yml Normal file
View file

@ -0,0 +1,20 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- stable
pool: default
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run build
displayName: 'npm install and build'

18672
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -14,38 +14,23 @@
"homepage": "https://cider.sh/", "homepage": "https://cider.sh/",
"buildResources": "resources", "buildResources": "resources",
"scripts": { "scripts": {
"build": "tsc && npm run compile-less", "bootstrap": "npm install --legacy-peer-deps",
"compile-less": "lessc ./src/renderer/style.less ./src/renderer/style.css", "build": "tsc && lessc ./src/renderer/style.less ./src/renderer/style.css",
"start": "run-script-os", "start": "npm run build && electron ./build/index.js",
"start:win32": "npm run build && set ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
"start:linux": "npm run build && ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
"start:darwin": "npm run build && ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
"start-renderer": "run-script-os",
"start-renderer:win32": "set ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
"start-renderer:linux": "ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
"start-renderer:darwin": "ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
"pack": "electron-builder --dir",
"dist": "npm run build && electron-builder", "dist": "npm run build && electron-builder",
"dist:macarm": "npm run build && electron-builder --mac --arm64",
"dist:linuxdir": "npm run build && electron-builder --linux dir",
"slim-build:macarm": "ditto --arch arm64 ./dist/mac-universal/Cider.app ./dist/mac-universal/arm64/Cider.app",
"slim-build:macintel": "ditto --arch x86_64 ./dist/mac-universal/Cider.app ./dist/mac-universal/x86_x64/Cider.app",
"dist:universalNotWorking": "npm run build && electron-builder --mac --universal", "dist:universalNotWorking": "npm run build && electron-builder --mac --universal",
"dist:all": "npm run build && electron-builder -mwl",
"testdist": "npm run build && electron-builder --dir",
"winget": "npm run build && electron-builder --win -c winget.json", "winget": "npm run build && electron-builder --win -c winget.json",
"msft": "npm run build && electron-builder -c msft-package.json", "msft": "npm run build && electron-builder -c msft-package.json",
"mstest": "npm run build && electron-builder -c msft-test.json", "mstest": "npm run build && electron-builder -c msft-test.json",
"steamdeck": "npm run build && electron-builder --linux -c steam-deck.json", "steamdeck": "npm run build && electron-builder --linux -c steam-deck.json",
"postinstall": "electron-builder install-app-deps",
"format:check": "npx prettier --check \"src/**/*.{js,json,ts,less}\"", "format:check": "npx prettier --check \"src/**/*.{js,json,ts,less}\"",
"format:write": "npx prettier --write \"src/**/*.{js,json,ts,less}\"" "format:write": "npx prettier --write \"src/**/*.{js,json,ts,less}\""
}, },
"dependencies": { "dependencies": {
"@achingbrain/ssdp": "^4.0.1", "@achingbrain/ssdp": "^4.0.1",
"@sentry/electron": "^4.1.2", "@sentry/electron": "^4.2.0",
"@sentry/integrations": "^7.29.0", "@sentry/integrations": "^7.31.1",
"adm-zip": "0.4.10", "adm-zip": "^0.4.16",
"airtunes2": "github:ciderapp/node_airtunes2", "airtunes2": "github:ciderapp/node_airtunes2",
"castv2-client": "^1.2.0", "castv2-client": "^1.2.0",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
@ -123,9 +108,9 @@
} }
], ],
"build": { "build": {
"electronVersion": "21.2.0", "electronVersion": "21.3.3",
"electronDownload": { "electronDownload": {
"version": "21.2.0+wvcus", "version": "21.3.3+wvcus",
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v" "mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
}, },
"appId": "cider", "appId": "cider",

9786
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

@ -1 +1 @@
Subproject commit 1d3a1f7c11457dddcbcb2049ff444853dad49dc3 Subproject commit 1a427976edb6c19bf16620c15cba75f5052f7313

View file

@ -428,8 +428,12 @@ export class BrowserWindow {
} }
break; break;
case "linux": case "linux":
this.options.backgroundColor = "#1E1E1E";
this.options.autoHideMenuBar = true; this.options.autoHideMenuBar = true;
if (!(utils.getStoreValue("visual.transparent") ?? false)) {
this.options.backgroundColor = "#1E1E1E";
} else {
this.options.transparent = true;
}
if (utils.getStoreValue("visual.nativeTitleBar")) { if (utils.getStoreValue("visual.nativeTitleBar")) {
this.options.titleBarStyle = "visible"; this.options.titleBarStyle = "visible";
this.options.frame = true; this.options.frame = true;

View file

@ -109,7 +109,7 @@
:class="$root.isDisabled() && 'disabled'" :class="$root.isDisabled() && 'disabled'"
@click="$root.mk.repeatMode = 1" :title="$root.getLz('term.enableRepeatOne')" @click="$root.mk.repeatMode = 1" :title="$root.getLz('term.enableRepeatOne')"
v-b-tooltip.hover></button> v-b-tooltip.hover></button>
<button class="playback-button--small repeat repeatOne" @click="mk.repeatMode = 2" <button class="playback-button--small repeat repeatOne" @click="$root.mk.repeatMode = 2"
:class="$root.isDisabled() && 'disabled'" v-else-if="$root.mk.repeatMode == 1" :class="$root.isDisabled() && 'disabled'" v-else-if="$root.mk.repeatMode == 1"
:title="$root.getLz('term.disableRepeatOne')" v-b-tooltip.hover></button> :title="$root.getLz('term.disableRepeatOne')" v-b-tooltip.hover></button>
<button class="playback-button--small repeat active" @click="$root.mk.repeatMode = 0" <button class="playback-button--small repeat active" @click="$root.mk.repeatMode = 0"

View file

@ -1490,7 +1490,7 @@
</div> </div>
</div> </div>
<div class="md-option-line update-check" v-if="app.platform === 'win32'"> <div class="md-option-line update-check" v-if="app.platform === 'win32' || app.platform === 'linux'">
<div class="md-option-segment"> <div class="md-option-segment">
{{$root.getLz('settings.option.visual.transparent')}}<br> {{$root.getLz('settings.option.visual.transparent')}}<br>
<small>({{$root.getLz('settings.option.visual.transparent.description')}})</small> <small>({{$root.getLz('settings.option.visual.transparent.description')}})</small>

View file

@ -1,7 +1,7 @@
{ {
"electronVersion": "21.2.0", "electronVersion": "21.3.3",
"electronDownload": { "electronDownload": {
"version": "21.2.0+wvcus", "version": "21.3.3+wvcus",
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v" "mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
}, },
"appId": "cider", "appId": "cider",