Skip to content

auto launch fix

auto launch fix #41

Workflow file for this run

name: Build and Release
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up VS
uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install setuptools
run: pip install setuptools
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Rebuild dependencies
run: node_modules/.bin/electron-rebuild
- name: Build application
run: npm run build
- name: Delete release
uses: cb80/delrel@latest
with:
tag: 'latest'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: latest
release_name: Latest Release
body: |
点击下方 `ElectronClassSchedule.zip` 即可下载,下载完成后请先解压再运行
若下载过慢可使用第三方代理下载 [【点我下载】ElectronClassSchedule.zip](https://mirror.ghproxy.com/?q=https%3A%2F%2Fgithub.com%2FEnderWolf006%2FElectronClassSchedule%2Freleases%2Fdownload%2Flatest%2FElectronClassSchedule.zip)
推荐使用VSCode编辑配置文件 [【点我下载】Visual Studio Code](https://lsw-fast.lenovo.com.cn/appstore/apps/4970-2024-03-01100059-1709258459745.exe)
2024/2/24: 已更新窗口置顶选项与上课时间倒计时隐藏
2024/3/09: 已支持课表样式修改,包括字体、透明度、间距等属性修改
2024/3/17: 已支持课上隐藏课表,课上仅保留小窗倒计时,开机自动启动,鼠标靠近降低透明度
2024/3/22: ~~已修复开机自动启动报错Bug~~,新增小窗口倒计时课程名称显示
2024/3/23: 已修复workingDir未配置导致的开机自动启动报错Bug
喜欢本项目的话, 点击右上角的Star支持一下作者吧😘
draft: false
prerelease: false
- name: Pack folder to zip
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'release.zip'
directory: './out/classSchedule-win32-x64'
- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./out/classSchedule-win32-x64/release.zip
asset_name: ElectronClassSchedule.zip
asset_content_type: application/zip