Skip to content

Commit

Permalink
Fix: Resource not accessible by integration
Browse files Browse the repository at this point in the history
  • Loading branch information
aaurelions committed Dec 1, 2024
1 parent de25113 commit 5e873f4
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/build-macos-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,39 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

# Step 2: Get the latest tag or commit hash
- name: Get Version
id: version
run: |
# Try to get the latest tag
git fetch --tags
TAG=$(git describe --tags --abbrev=0 || echo "v0.0.0")
echo "TAG=$TAG" >> $GITHUB_ENV
echo "VERSION=${TAG}" >> $GITHUB_ENV
# Step 2: Set up Python
# Step 3: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

# Step 3: Install dependencies
# Step 4: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pyinstaller
# Step 4: Build the macOS application
# Step 5: Build the macOS application
- name: Build .app using pyinstaller
run: |
pyinstaller --onefile --noconsole --windowed --icon=images/logo.icns --add-data "images:images" browser_amnesia_gui.py
mv dist/browser_amnesia_gui.app dist/BrowserAmnesia_${{ env.VERSION }}.app
# Step 5: Upload the .app file as an artifact
- name: Upload macOS Application
uses: actions/upload-artifact@v3
with:
name: BrowserAmnesia-macos
path: dist/BrowserAmnesia_${{ env.VERSION }}.app
mv dist/browser_amnesia_gui.app "dist/BrowserAmnesia_${{ env.VERSION }}.app"
# Step 6: Create a Release and Upload .app
- name: Create Release
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.VERSION }}
release_name: "BrowserAmnesia macOS App ${{ env.VERSION }}"
files: "dist/BrowserAmnesia_${{ env.VERSION }}.app"
name: "BrowserAmnesia macOS App ${{ env.VERSION }}"
artifacts: "dist/BrowserAmnesia_${{ env.VERSION }}.app"
generateReleaseNotes: true

0 comments on commit 5e873f4

Please sign in to comment.