Merge branch 'develop' of https://github.com/ciderapp/Cider into develop

This commit is contained in:
Amaru8 2022-05-01 11:04:20 +02:00
commit e7ef288a91
2 changed files with 35 additions and 129 deletions

View file

@ -1,21 +1,18 @@
version: 2.1 version: 2.1
executors:
cider-ci:
docker:
- image: circleci/node:16
working_directory: ~/Cider
orbs: # adds orbs to your configuration orbs: # adds orbs to your configuration
jira: circleci/jira@1.0.5 # invokes the Jira orb, making its commands accessible jira: circleci/jira@1.0.5 # invokes the Jira orb, making its commands accessible
branches:
# The jobs for this project only:
- main
- develop
jobs: jobs:
prepare-build: build:
executor: cider-ci working_directory: ~/Cider
docker:
- image: circleci/node:16
steps: steps:
- checkout - checkout
- run: ls -la
- run: - run:
name: Set App Version name: Set App Version
command: echo "export APP_VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)" >> $BASH_ENV command: echo "export APP_VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)" >> $BASH_ENV
@ -35,144 +32,50 @@ jobs:
paths: paths:
- ~/.cache/yarn - ~/.cache/yarn
- run: - run:
name: TypeScript Compile name: Install system build dependencies
command: yarn build
- 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: .
# Must be relative path from root
paths:
- node_modules
- build
- resources
- yarn.lock
- package.json
- winget.json # winget.json is a file that is generated by the winget package manager
- LICENSE
- license.txt
build-windows:
executor: cider-ci
steps:
- attach_workspace:
at: ~/Cider
- run:
name: Install Windows System Build Dependencies
command: | command: |
sudo apt-get update -y sudo apt-get update -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt-get install -y dpkg fakeroot wine64 sudo apt-get install -y dpkg fakeroot wine64
sudo dpkg --add-architecture i386 sudo dpkg --add-architecture i386
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y wine32 sudo apt-get install -y wine32
sudo apt install -y gh
- run: - run:
name: Fix Versioning and Add Channel name: Fix Versioning and Add Channel
command: yarn circle:script command: yarn circle:script
- run: - run:
name: Generate Builds (Windows) name: TypeScript Compile
command: yarn electron-builder -w --x64 -p never command: yarn build
post-steps:
- jira/notify
- persist_to_workspace:
root: .
paths:
- dist/*.exe
- dist/latest.yml
build-linux:
executor: cider-ci
steps:
- attach_workspace:
at: ~/Cider
- run:
name: Fix Versioning and Add Channel
command: yarn circle:script
- 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: post-steps:
- jira/notify - jira/notify
- persist_to_workspace:
root: .
paths:
- dist/*.deb
- dist/*.AppImage
- dist/*.snap
- dist/latest-linux.yml
build-winget:
executor: cider-ci
steps:
- attach_workspace:
at: ~/Cider
- run: - run:
name: Install Windows System Build Dependencies name: Generate Builds (Windows)
command: | command: yarn electron-builder -w --x64 -p never
sudo apt-get update -y post-steps:
sudo apt-get install -y dpkg fakeroot wine64 - jira/notify
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y wine32
- run:
name: Fix Versioning and Add Channel
command: yarn circle:script
- 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: post-steps:
- jira/notify - jira/notify
- persist_to_workspace:
root: .
paths:
- dist/*.exe
# - dist/*.yml
release:
executor: cider-ci
steps:
- attach_workspace:
at: ~/Cider/
- run:
name: Installing GitHub Command Line Interface
command: |
sudo apt-get update -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt-get update -y
sudo apt install -y gh
- run: - run:
name: Move Build Files name: Move Build Files
command: | command: |
mkdir ~/Cider/dist/artifacts/ mkdir ~/Cider/dist/artifacts/
mv ~/Cider/dist/*.exe ~/Cider/dist/artifacts mv ~/Cider/dist/*.exe ~/Cider/dist/artifacts
mv ~/Cider/dist/*.deb ~/Cider/dist/artifacts mv ~/Cider/dist/*.deb ~/Cider/dist/artifacts
mv ~/Cider/dist/*.AppImage ~/Cider/dist/artifacts mv ~/Cider/dist/*.AppImage ~/Cider/dist/artifacts
mv ~/Cider/dist/*.snap ~/Cider/dist/artifacts mv ~/Cider/dist/*.snap ~/Cider/dist/artifacts
mv ~/Cider/dist/*.yml ~/Cider/dist/artifacts mv ~/Cider/dist/*.yml ~/Cider/dist/artifacts
mv ~/Cider/dist/*.blockmap ~/Cider/dist/artifacts mv ~/Cider/dist/*.blockmap ~/Cider/dist/artifacts
- store_artifacts: - store_artifacts:
path: ~/Cider/dist/artifacts path: ~/Cider/dist/artifacts
- run: - run:
name: Publish Release name: Publish Release
command: | command: |
gh release create "v${APP_VERSION}.${CIRCLE_BUILD_NUM}" --title "Cider Version ${APP_VERSION} - Build ${CIRCLE_BUILD_NUM} (${CIRCLE_BRANCH})" --generate-notes -R ciderapp/cider-releases ~/Cider/dist/artifacts/*.deb ~/Cider/dist/artifacts/*.AppImage ~/Cider/dist/artifacts/*.snap ~/Cider/dist/artifacts/*.exe ~/Cider/dist/artifacts/*.yml ~/Cider/dist/artifacts/*.blockmap gh release create "v${APP_VERSION}.${CIRCLE_BUILD_NUM}" --title "Cider Version ${APP_VERSION} - Build ${CIRCLE_BUILD_NUM} (${CIRCLE_BRANCH})" --generate-notes -R ciderapp/cider-releases ~/Cider/dist/artifacts/*.deb ~/Cider/dist/artifacts/*.AppImage ~/Cider/dist/artifacts/*.snap ~/Cider/dist/artifacts/*.exe ~/Cider/dist/artifacts/*.yml ~/Cider/dist/artifacts/*.blockmap
# Orchestrate our job run sequence
workflows:
build_and_release:
jobs:
- prepare-build
- build-windows:
requires:
- prepare-build
- build-linux:
requires:
- prepare-build
- build-winget:
requires:
- prepare-build
- release:
requires:
- build-windows
- build-linux
- build-winget

View file

@ -151,6 +151,9 @@
"podcast.episodes": "單集", "podcast.episodes": "單集",
"podcast.playEpisode": "播放單集", "podcast.playEpisode": "播放單集",
"podcast.website": "Podcast 網站", "podcast.website": "Podcast 網站",
"action.edit": "編輯",
"action.done": "完成",
"action.editTracklist": "編輯歌曲清單",
"action.addToLibrary": "加入到資料庫", "action.addToLibrary": "加入到資料庫",
"action.addToLibrary.success": "成功加入資料庫", "action.addToLibrary.success": "成功加入資料庫",
"action.addToLibrary.error": "加入資料庫時,發生錯誤", "action.addToLibrary.error": "加入資料庫時,發生錯誤",
@ -215,10 +218,10 @@
"settings.option.general.resumebehavior.locally.description": "Cider 將還原你在這台電腦上的最後一次操作。", "settings.option.general.resumebehavior.locally.description": "Cider 將還原你在這台電腦上的最後一次操作。",
"settings.option.general.resumebehavior.history": "歷史", "settings.option.general.resumebehavior.history": "歷史",
"settings.option.general.resumebehavior.history.description": "Cider 將跨裝置將你的整個 Apple Music 歷史記錄中的最後一首歌曲排隊入列。", "settings.option.general.resumebehavior.history.description": "Cider 將跨裝置將你的整個 Apple Music 歷史記錄中的最後一首歌曲排隊入列。",
"settings.option.general.resumetabs": "啟動時打開的選項", "settings.option.general.resumetabs": "啟動時打開的選項頁面",
"settings.option.general.resumetabs.description": "你可以選擇啟動 Cider 時要預設打開的左側選項欄。", "settings.option.general.resumetabs.description": "你可以選擇啟動 Cider 時要預設打開的頁面。",
"settings.option.general.resumetabs.dynamic": "", "settings.option.general.resumetabs.dynamic": "動",
"settings.option.general.resumetabs.dynamic.description": "Cider 將打開你上次停留的左側選項欄。", "settings.option.general.resumetabs.dynamic.description": "Cider 將自動打開你上次停留的頁面。",
"settings.option.general.language.main": "語言", "settings.option.general.language.main": "語言",
"settings.option.general.language.fun": "特殊語言", "settings.option.general.language.fun": "特殊語言",
"settings.option.general.language.unsorted": "未分類", "settings.option.general.language.unsorted": "未分類",