Skip to content

Commit

Permalink
Fixes for official release, adding initial value settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kavao committed Oct 15, 2024
1 parent 5a4ac3a commit ff800cf
Show file tree
Hide file tree
Showing 15 changed files with 735 additions and 582 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/release-chrome-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release Chrome Plugin

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get version number
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}

- name: Update manifest file
run: |
sed -i 's/"version": ".*"/"version": "${{ steps.get_version.outputs.VERSION }}"/' src/manifest.json
git config user.name github-actions
git config user.email github-actions@github.com
git add src/manifest.json
git commit -m "Update to version ${{ steps.get_version.outputs.VERSION }}"
git push
- name: Create ZIP file
run: |
cd src
zip -r ../chrome-plugin-${{ steps.get_version.outputs.VERSION }}.zip . -x "*.git*"
cd ..
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false

- name: Upload ZIP file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./chrome-plugin-${{ steps.get_version.outputs.VERSION }}.zip
asset_name: chrome-plugin-${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip
3 changes: 2 additions & 1 deletion README-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ NaiPrompterは、NovelAIの画像生成機能を拡張するChrome拡張機能
- [ライセンス](#ライセンス)

## 機能
![Screenshot](images/screenshot-jp.png)

- **複数枚生成**: 指定した枚数の画像を連続して生成できます。
- **プロンプトのクリア**: 現在のプロンプトをクリアします。
Expand All @@ -29,7 +30,7 @@ NaiPrompterは、NovelAIの画像生成機能を拡張するChrome拡張機能

## インストール

1. このリポジトリをクローンするか、ZIPファイルとしてダウンロードして解凍します
1. このリポジトリのリリースにデプロイされているZIPファイルをダウンロードして解凍します
2. Google Chromeで `chrome://extensions` を開きます。
3. 右上の「デベロッパーモード」をオンにします。
4. 「パッケージ化されていない拡張機能を読み込む」をクリックします。
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ NaiPrompter is a Chrome extension designed to enhance the user experience of Nov
- [License](#license)

## Features
![Screenshot](images/screenshot.png)

- Generate multiple images at once
- Save and manage custom styles
Expand All @@ -25,7 +26,7 @@ NaiPrompter is a Chrome extension designed to enhance the user experience of Nov

## Installation

1. Download the extension files
1. Download and unzip the ZIP file deployed in this repository release.
2. Open Chrome and go to `chrome://extensions/`
3. Enable "Developer mode" in the top right corner
4. Click "Load unpacked" and select the folder containing the extension files
Expand Down
Binary file added images/screenshot-jp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ff800cf

Please sign in to comment.