Skip to content

Commit

Permalink
Version Up 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kura52 authored and kura52 committed Oct 16, 2017
1 parent cd96ae3 commit db2528d
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 70 deletions.
2 changes: 1 addition & 1 deletion MUON_VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.4.28
4.4.29
49 changes: 41 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ This browser makes use of wonderful web technologies, starting with the followin
Both the installer for every platform and the portable version can be downloaded.
To use the portable edition, please run sushi.exe for Windows and sushi-browser for Mac/Linux after decompressing.

- [Windows Installer v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1-setup-x64.exe)
- [Windows Portable v0.6.1(self-extract)](https://sushib.me/dl/sushi-browser-0.6.1-win-x64.exe)
- [Windows Portable v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1-win-x64.zip)
- [MacOS dmg v0.6.1](https://sushib.me/dl/SushiBrowser-0.6.1.dmg)
- [MacOS Portable v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1-mac-x64.zip)
- [Linux rpm (for Fedora/CentOS) v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1.x86_64.rpm)
- [Linux deb (for Debian/Ubuntu) v0.6.1](https://sushib.me/dl/sushi-browser_0.6.1_amd64.deb)
- [Linux Portable v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1.tar.bz2)
- [Windows Installer v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0-setup-x64.exe)
- [Windows Portable v0.7.0(self-extract)](https://sushib.me/dl/sushi-browser-0.7.0-win-x64.exe)
- [Windows Portable v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0-win-x64.zip)
- [MacOS dmg v0.7.0](https://sushib.me/dl/SushiBrowser-0.7.0.dmg)
- [MacOS Portable v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0-mac-x64.zip)
- [Linux rpm (for Fedora/CentOS) v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0.x86_64.rpm)
- [Linux deb (for Debian/Ubuntu) v0.7.0](https://sushib.me/dl/sushi-browser_0.7.0_amd64.deb)
- [Linux Portable v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0.tar.bz2)

# Use of Flash
If Flash won't run, please install Flash from the following web sites.
Expand All @@ -157,6 +157,39 @@ sushi-browser --no-sandbox

# New Features

#### New function(v0.70)
- Implemented partical chrome extensions API (Experimental)
- Added function that can install Chrome extension from Chrome web store
- Implemented multi-row tabs
- By right clicking the icon on the menu bar, we made it possible to sort
- Performance Improvement
- Fixed a lot of bugs


- Extensions Path (If browser becomes unstable please delete folders)
- Windows: C:\Users\[Name]\AppData\Roaming\sushiBrowser\resource\extension
- MacOS: /Users/[Name]/Library/Application Support/sushiBrowser/resource/extension
- Linux: ~/.config/sushiBrowser/resource/extension/


- Partical or All implemented APIs
- chrome.browserAction
- chrome.contextMenus
- chrome.cookies
- chrome.extension
- chrome.i18
- chrome.idle
- chrome.pageAction
- chrome.proxy
- chrome.runtime
- chrome.sessions
- chrome.storage
- chrome.tabs
- chrome.webNavigation
- chrome.webRequest
- chrome.windows


#### New function(v0.61)
- Added session tab function
- Fixed bug at load start and stop
Expand Down
48 changes: 40 additions & 8 deletions ja/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ Sync Data機能をOnにすると複数端末間で履歴とお気に入りの同

各プラットフォームに対し、インストーラとポータブル版の両方がダウンロードできます。

- [Windows Installer v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1-setup-x64.exe)
- [Windows Portable v0.6.1(自己解凍)](https://sushib.me/dl/sushi-browser-0.6.1-win-x64.exe)
- [Windows Portable v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1-win-x64.zip)
- [MacOS dmg v0.6.1](https://sushib.me/dl/SushiBrowser-0.6.1.dmg)
- [MacOS Portable v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1-mac-x64.zip)
- [Linux rpm (for Fedora/CentOS) v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1.x86_64.rpm)
- [Linux deb (for Debian/Ubuntu) v0.6.1](https://sushib.me/dl/sushi-browser_0.6.1_amd64.deb)
- [Linux Portable v0.6.1](https://sushib.me/dl/sushi-browser-0.6.1.tar.bz2)
- [Windows Installer v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0-setup-x64.exe)
- [Windows Portable v0.7.0(自己解凍)](https://sushib.me/dl/sushi-browser-0.7.0-win-x64.exe)
- [Windows Portable v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0-win-x64.zip)
- [MacOS dmg v0.7.0](https://sushib.me/dl/SushiBrowser-0.7.0.dmg)
- [MacOS Portable v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0-mac-x64.zip)
- [Linux rpm (for Fedora/CentOS) v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0.x86_64.rpm)
- [Linux deb (for Debian/Ubuntu) v0.7.0](https://sushib.me/dl/sushi-browser_0.7.0_amd64.deb)
- [Linux Portable v0.7.0](https://sushib.me/dl/sushi-browser-0.7.0.tar.bz2)

ポータブル版の利用は、解凍後にWindowsはsushi.exeを、Mac/Linuxはsushi-browserを実行ください。

Expand All @@ -161,6 +161,38 @@ sushi-browser --no-sandbox

# 新機能

#### 新機能(v0.70)
- Chrome拡張APIを一部実装
- Chrome web storeからChrome拡張をインストールする機能を追加
- 多段タブの実装
- メニューバー上のアイコンを右クリックすることで、並び替え可能にしました
- 性能向上
- 多数のバグ修正


- Chrome拡張インストールパス(もしブラウザの動作が不安定になった場合は、フォルダを削除ください)
- Windows: C:\Users\[Name]\AppData\Roaming\sushiBrowser\resource\extension
- MacOS: /Users/[Name]/Library/Application Support/sushiBrowser/resource/extension
- Linux: ~/.config/sushiBrowser/resource/extension/


- 一部分または全て実装済みのAPI一覧
- chrome.browserAction
- chrome.contextMenus
- chrome.cookies
- chrome.extension
- chrome.i18
- chrome.idle
- chrome.pageAction
- chrome.proxy
- chrome.runtime
- chrome.sessions
- chrome.storage
- chrome.tabs
- chrome.webNavigation
- chrome.webRequest
- chrome.windows

#### 新機能(v0.61)
- セッションタブ機能の追加
- ページ読み込み開始時、完了時の不具合を修正
Expand Down
6 changes: 5 additions & 1 deletion src/chromeEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,16 @@ ipcMain.on('add-extension',(e,id)=>{
return
}
}
let retry = 0
setTimeout(_=>{
const intId = setInterval(async _=>{
console.log(234,global.downloadItems)
if(retry++ > 100) clearInterval(intId)
if(!global.downloadItems.length){
clearInterval(intId)
try{
console.log(`${extRootPath}.crx`,retry)
if(!fs.existsSync(`${extRootPath}.crx`)) return
clearInterval(intId)
const ret = await exec(`${exePath[0]} x -o"${extRootPath}_crx" "${extRootPath}.crx"`)
console.log(345,ret)
const verPath = path.join(extRootPath,JSON.parse(fs.readFileSync(path.join(`${extRootPath}_crx`,'manifest.json'))).version)
Expand Down
2 changes: 1 addition & 1 deletion src/ipcUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ ipcMain.on('get-sync-main-states',(e,keys)=>{
})

ipcMain.on('get-sync-main-state',(e,key)=>{
e.returnValue = mainState[key]
e.returnValue = mainState[key] || null
})
// ipcMain.on('send-keys',(e,keys)=>{
// e.sender.sendInputEvent(keys)
Expand Down
1 change: 1 addition & 0 deletions src/render/browserNavbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ class BrowserNavbar extends Component{
onClick={()=>{
ipc.send('save-state',{tableName:'state',key:'multistageTabs',val:!multistageTabs})
PubSub.publish('change-multistage-tabs',!multistageTabs)
PubSub.publish("resizeWindow",{})
}}/> : null
}
{isDarwin ? null :<NavbarMenuItem text={this.props.toggleNav == 3 ? 'Normal Screen Mode' : 'Full Screen Mode'} icon={this.props.toggleNav == 3 ? 'compress' : 'expand'}
Expand Down
154 changes: 103 additions & 51 deletions tools/versionUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,63 @@ const CURRENT_APP_VERSION = fs.readFileSync('../VERSION.txt').toString()
const NEXT_APP_VERSION = "0.7.0"
const NEXT_APP_VERSION2 = `${NEXT_APP_VERSION.split(".").slice(0,-1).join('.')}${NEXT_APP_VERSION.split(".").slice(-1)[0]}`

const CHANGE_ENGLISH = `Added session tab function
Fixed bug at load start and stop`

const CHANGE_JAPANESE = `セッションタブ機能の追加
ページ読み込み開始時、完了時の不具合を終了`
const CHANGE_ENGLISH = `Implemented partical chrome extensions API (Experimental)
Added function that can install Chrome extension from Chrome web store
Implemented multi-row tabs
By right clicking the icon on the menu bar, we made it possible to sort
Performance Improvement
Fixed a lot of bugs
Extensions Path (If browser becomes unstable please delete folders)
Windows: C:\\Users\\[Name]\\AppData\\Roaming\\sushiBrowser\\resource\\extension
MacOS: /Users/[Name]/Library/Application Support/sushiBrowser/resource/extension
Linux: ~/.config/sushiBrowser/resource/extension/
Partical or All implmented APIs
chrome.browserAction
chrome.contextMenus
chrome.cookies
chrome.extension
chrome.i18
chrome.idle
chrome.pageAction
chrome.proxy
chrome.runtime
chrome.sessions
chrome.storage
chrome.tabs
chrome.webNavigation
chrome.webRequest
chrome.windows`

const CHANGE_JAPANESE = `Chrome拡張APIを一部実装
Chrome web storeからChrome拡張をインストールする機能を追加
多段タブの実装
メニューバー上のアイコンを右クリックすることで、並び替え可能にしました
性能向上
多数のバグ修正
Chrome拡張インストールパス(もしブラウザの動作が不安定になった場合は、フォルダを削除ください)
Windows: C:\\Users\\[Name]\\AppData\\Roaming\\sushiBrowser\\resource\\extension
MacOS: /Users/[Name]/Library/Application Support/sushiBrowser/resource/extension
Linux: ~/.config/sushiBrowser/resource/extension/
一部分または全て実装済みのAPI一覧
chrome.browserAction
chrome.contextMenus
chrome.cookies
chrome.extension
chrome.i18
chrome.idle
chrome.pageAction
chrome.proxy
chrome.runtime
chrome.sessions
chrome.storage
chrome.tabs
chrome.webNavigation
chrome.webRequest
chrome.windows`

const isWindows = process.platform === 'win32'
const isDarwin = process.platform === 'darwin'
Expand Down Expand Up @@ -95,52 +147,52 @@ filesContentsReplace([path.join(pwd,'../web/check.json'),path.join(pwd,'README.m
fileContentsReplace(path.join(pwd,'../web/sitemap.xml'),/<lastmod>(.+?)<\/lastmod>/,`<lastmod>${formatDate(new Date())}</lastmod>`)


// if(!fs.readFileSync(path.join(pwd,'README.md')).includes(`v${NEXT_APP_VERSION2}`)){
// fileContentsReplace(path.join(pwd,'README.md'),'# New Features',`# New Features
//
// #### New function(v${NEXT_APP_VERSION2})
// - ${CHANGE_ENGLISH.split("\n").join("\n- ")}`)
// }
//
//
// if(!fs.readFileSync(path.join(pwd,'ja/README.md')).includes(`v${NEXT_APP_VERSION2}`)){
// fileContentsReplace(path.join(pwd,'ja/README.md'),'# 新機能 ',`# 新機能
//
// #### 新機能(v${NEXT_APP_VERSION2})
// - ${CHANGE_JAPANESE.split("\n").join("\n- ")}`)
// }
//
// if(!fs.readFileSync(path.join(pwd,'../web/index.html')).includes(`v${NEXT_APP_VERSION2}`)){
// fileContentsReplace(path.join(pwd,'../web/index.html'),'<!-- REPLACE -->',`<!-- REPLACE -->
// <h4 class="features-tittle" style="padding-top: 20px;">New function(v${NEXT_APP_VERSION2})</h4>
// <div style="text-align: left;line-height: inherit;width: 75%;margin: auto;border-bottom: 1px solid #dedede;">
// <p>${orderAdd(CHANGE_ENGLISH).split("\n").join("</p>\n\t\t\t\t\t\t\t\t\t<p>")}</p>
// </div>`)
// }
//
// if(!fs.readFileSync(path.join(pwd,'../web/ja/index.html')).includes(`v${NEXT_APP_VERSION2}`)){
// fileContentsReplace(path.join(pwd,'../web/ja/index.html'),'<!-- REPLACE -->',`<!-- REPLACE -->
// <h4 class="features-tittle" style="padding-top: 20px;">新機能(v${NEXT_APP_VERSION2})</h4>
// <div style="text-align: left;line-height: inherit;width: 75%;margin: auto;border-bottom: 1px solid #dedede;">
// <p>${orderAdd(CHANGE_JAPANESE).split("\n").join("</p>\n\t\t\t\t\t\t\t\t\t<p>")}</p>
// </div>`)
// }
//
// if(!fs.readFileSync(path.join(pwd,'../web/download.html')).includes(`v${NEXT_APP_VERSION2}`)){
// fileContentsReplace(path.join(pwd,'../web/download.html'),'<!-- REPLACE -->',`<!-- REPLACE -->
// <h4 class="features-tittle">New function(v${NEXT_APP_VERSION2})</h4>
// <div style="text-align: left;line-height: inherit;width: 75%;margin: auto;border-bottom: 1px solid #dedede;">
// <p>${orderAdd(CHANGE_ENGLISH).split("\n").join("</p>\n\t\t\t\t\t\t\t<p>")}</p>
// </div>`)
// }
//
// if(!fs.readFileSync(path.join(pwd,'../web/ja/download.html')).includes(`v${NEXT_APP_VERSION2}`)){
// fileContentsReplace(path.join(pwd,'../web/ja/download.html'),'<!-- REPLACE -->',`<!-- REPLACE -->
// <h4 class="features-tittle">新機能(v${NEXT_APP_VERSION2})</h4>
// <div style="text-align: left;line-height: inherit;width: 75%;margin: auto;">
// <p>${orderAdd(CHANGE_JAPANESE).split("\n").join("</p>\n\t\t\t\t\t\t\t<p>")}</p>
// </div>`)
// }
if(!fs.readFileSync(path.join(pwd,'README.md')).includes(`v${NEXT_APP_VERSION2}`)){
fileContentsReplace(path.join(pwd,'README.md'),'# New Features',`# New Features
#### New function(v${NEXT_APP_VERSION2})
- ${CHANGE_ENGLISH.split("\n").join("\n- ")}`)
}


if(!fs.readFileSync(path.join(pwd,'ja/README.md')).includes(`v${NEXT_APP_VERSION2}`)){
fileContentsReplace(path.join(pwd,'ja/README.md'),'# 新機能 ',`# 新機能
#### 新機能(v${NEXT_APP_VERSION2})
- ${CHANGE_JAPANESE.split("\n").join("\n- ")}`)
}

if(!fs.readFileSync(path.join(pwd,'../web/index.html')).includes(`v${NEXT_APP_VERSION2}`)){
fileContentsReplace(path.join(pwd,'../web/index.html'),'<!-- REPLACE -->',`<!-- REPLACE -->
<h4 class="features-tittle" style="padding-top: 20px;">New function(v${NEXT_APP_VERSION2})</h4>
<div style="text-align: left;line-height: inherit;width: 75%;margin: auto;border-bottom: 1px solid #dedede;">
<p>${orderAdd(CHANGE_ENGLISH).split("\n").join("</p>\n\t\t\t\t\t\t\t\t\t<p>")}</p>
</div>`)
}

if(!fs.readFileSync(path.join(pwd,'../web/ja/index.html')).includes(`v${NEXT_APP_VERSION2}`)){
fileContentsReplace(path.join(pwd,'../web/ja/index.html'),'<!-- REPLACE -->',`<!-- REPLACE -->
<h4 class="features-tittle" style="padding-top: 20px;">新機能(v${NEXT_APP_VERSION2})</h4>
<div style="text-align: left;line-height: inherit;width: 75%;margin: auto;border-bottom: 1px solid #dedede;">
<p>${orderAdd(CHANGE_JAPANESE).split("\n").join("</p>\n\t\t\t\t\t\t\t\t\t<p>")}</p>
</div>`)
}

if(!fs.readFileSync(path.join(pwd,'../web/download.html')).includes(`v${NEXT_APP_VERSION2}`)){
fileContentsReplace(path.join(pwd,'../web/download.html'),'<!-- REPLACE -->',`<!-- REPLACE -->
<h4 class="features-tittle">New function(v${NEXT_APP_VERSION2})</h4>
<div style="text-align: left;line-height: inherit;width: 75%;margin: auto;border-bottom: 1px solid #dedede;">
<p>${orderAdd(CHANGE_ENGLISH).split("\n").join("</p>\n\t\t\t\t\t\t\t<p>")}</p>
</div>`)
}

if(!fs.readFileSync(path.join(pwd,'../web/ja/download.html')).includes(`v${NEXT_APP_VERSION2}`)){
fileContentsReplace(path.join(pwd,'../web/ja/download.html'),'<!-- REPLACE -->',`<!-- REPLACE -->
<h4 class="features-tittle">新機能(v${NEXT_APP_VERSION2})</h4>
<div style="text-align: left;line-height: inherit;width: 75%;margin: auto;">
<p>${orderAdd(CHANGE_JAPANESE).split("\n").join("</p>\n\t\t\t\t\t\t\t<p>")}</p>
</div>`)
}


const htmls = []
Expand Down

0 comments on commit db2528d

Please sign in to comment.