Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github actions update #3

Merged
merged 40 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
63177e4
Update main.yml
sun-jiao Feb 27, 2024
eece2fc
Update main.yml
sun-jiao Feb 27, 2024
b8e7594
Create renamer_evb.evb
sun-jiao Feb 27, 2024
743f69d
evb test
sun-jiao Feb 27, 2024
60c677a
Update main.yml
sun-jiao Feb 27, 2024
7dae26f
macos dmg build
sun-jiao Feb 27, 2024
2ce9dfd
macos dmg build fix
sun-jiao Feb 27, 2024
c887e05
macos dmg build fix
sun-jiao Feb 27, 2024
9bbd640
win and mac update
sun-jiao Feb 27, 2024
8b31510
win fix
sun-jiao Feb 27, 2024
abfd423
mac fix
sun-jiao Feb 27, 2024
df07dfd
mac fix
sun-jiao Feb 27, 2024
bd9aa73
windows fix
sun-jiao Feb 27, 2024
3625281
win mac fix
sun-jiao Feb 27, 2024
63bab09
mac update, win fix
sun-jiao Feb 27, 2024
39b09e6
Update main.yml
sun-jiao Feb 27, 2024
e668d24
Update main.yml
sun-jiao Feb 27, 2024
d2906fb
Update main.yml
sun-jiao Feb 27, 2024
dada436
Merge branch 'main' into github-action-test
sun-jiao Feb 27, 2024
db81a73
Create package.json
sun-jiao Feb 27, 2024
5f83592
win fix
sun-jiao Feb 27, 2024
579935b
win update
sun-jiao Feb 27, 2024
c7558a9
Update main.yml
sun-jiao Feb 27, 2024
df0d16e
test
sun-jiao Feb 27, 2024
d885d19
Update main.yml
sun-jiao Feb 27, 2024
7660ba7
Update main.yml
sun-jiao Feb 27, 2024
c11abd9
Update main.yml
sun-jiao Feb 27, 2024
d842b1d
Update main.yml
sun-jiao Feb 27, 2024
d26302c
update linux win mac
sun-jiao Feb 28, 2024
3907f75
Update main.yml
sun-jiao Feb 28, 2024
e215e95
Update main.yml
sun-jiao Feb 28, 2024
4e7dad9
Update main.yml
sun-jiao Feb 28, 2024
97e6846
Delete renamer_evb.evb
sun-jiao Feb 28, 2024
41a1815
Revert "Delete renamer_evb.evb"
sun-jiao Feb 28, 2024
ad0ce54
retry win evb
sun-jiao Feb 28, 2024
eac5ba7
Update renamer.evb
sun-jiao Feb 28, 2024
7c54c6a
Update renamer.evb
sun-jiao Feb 28, 2024
5cdbfbb
Update renamer.evb
sun-jiao Feb 28, 2024
d855344
0
sun-jiao Feb 28, 2024
240f122
Update main.yml
sun-jiao Feb 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 37 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,26 @@ jobs:
run: flutter build linux --release
- name: Build Appimage
run: bash ./github_appimage_build.sh
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Linux Release
uses: actions/upload-artifact@v4
with:
name: Renamer-${{github.ref_name}}-linux.zip
name: Renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-linux
path: build/linux/x64/release/bundle
- name: Linux Appimage Release
uses: actions/upload-artifact@v4
with:
name: Renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-appimage
path: Renamer-x86_64.AppImage

build-and-release-windows:
runs-on: windows-latest

steps:
- name: check current path
run: cd
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
Expand All @@ -47,14 +57,25 @@ jobs:
run: flutter config --enable-windows-desktop
- name: Build artifacts
run: flutter build windows --release
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: install evb
run: npm install enigmavirtualbox -g
- name: build single exe file
run: enigmavirtualbox cli ".\evb\renamer.evb"
- name: Set outputs
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Windows Release
uses: actions/upload-artifact@v4
with:
name: Renamer-${{github.ref_name}}-windows.zip
path: build/windows/x64/runner/Release
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-windows
path: renamer.exe

build-and-release-macos:
runs-on: macos-latest
runs-on: macos-14

steps:
- uses: actions/checkout@v4
Expand All @@ -69,8 +90,18 @@ jobs:
run: flutter config --enable-macos-desktop
- name: Build artifacts
run: flutter build macos --release
- name: install npm
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: install appdmg
run: npm install -g appdmg
- name: build dmg
run: appdmg ./dmg/config.json ./build/macos/Build/Products/Release/renamer.dmg
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: macOS Release
uses: actions/upload-artifact@v4
with:
name: Renamer-${{github.ref_name}}-macos.zip
path: build/macos/Build/Products/Release
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-macos
path: build/macos/Build/Products/Release/renamer.dmg

8 changes: 8 additions & 0 deletions dmg/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"title": "renamer",
"icon": "../assets/desktop.png",
"contents": [
{ "x": 448, "y": 344, "type": "link", "path": "/Applications" },
{ "x": 192, "y": 344, "type": "file", "path": "../build/macos/Build/Products/Release/renamer.app" }
]
}
Loading
Loading