Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'staging' of github.com:mgilangjanuar/teledrive into sta…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
mgilangjanuar committed May 12, 2022
2 parents e998a1a + ba38709 commit 01339ab
Show file tree
Hide file tree
Showing 7 changed files with 1,301 additions and 1,510 deletions.
3 changes: 2 additions & 1 deletion electron/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
release-builds
package-lock.json
.DS_Store
.DS_Store
windowsinstaller
4 changes: 4 additions & 0 deletions electron/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dest": "D:/Onedrive/Documents/GitHub/teledrive/electron/windowsinstaller",
"icon": "assets/icons/win/icon.ico"
}
11 changes: 4 additions & 7 deletions electron/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,19 @@
/>
</head>
<body>
<!-- Topbar -->
<!-- for later
<div id="controls">
<button id="home" title="Dashboard">Dashboard</button>
</div>
<!-- End topbar -->
-->

<!-- Webview -->
<webview
id="webview"
autosize="on"
src="https://teledrive-web.vercel.app/startup"
data-home="https://teledrive-web.vercel.app/startup"
src="https://teledriveapp.herokuapp.com/startup"
data-home="https://teledriveapp.herokuapp.com/startup"
></webview>



</body>
</html>
7 changes: 4 additions & 3 deletions electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"scripts": {
"start": "electron .",
"package-mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds",
"package-win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Electron Webview\"",
"package-win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Teledrive\"",
"package-linux": "electron-packager . --overwrite --platform=linux --arch=x64 --icon=assets/icons/png/1024x1024.png --prune=true --out=release-builds",
"create-installer-mac": "electron-installer-dmg ./release-builds/Electron\\ webview-darwin-x64/Electron\\ webview.app electron-webview --out=release-builds --overwrite --icon=assets/icons/mac/icon.icns"
"create-installer-mac": "electron-installer-dmg ./release-builds/Electron\\ webview-darwin-x64/Electron\\ webview.app teledrive --out=release-builds --overwrite --icon=assets/icons/mac/icon.icns"
},
"repository": "https://github.com/mgilangjanuar/teledrive",
"keywords": [
Expand All @@ -26,6 +26,7 @@
"devDependencies": {
"electron": "^18.0.0",
"electron-installer-dmg": "^3.0.0",
"electron-packager": "^15.5.1"
"electron-packager": "^15.5.1",
"electron-wix-msi": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion electron/src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ exports.createBrowserView = (mainWindow) => {
const view = new BrowserView();
mainWindow.setBrowserView(view);
view.setBounds({ x: 0, y: 0, width: 1024, height: 768 });
view.webContents.loadURL("https://teledrive-web.vercel.app/startup");
view.webContents.loadURL("https://teledriveapp.herokuapp.com/startup");
};
Loading

0 comments on commit 01339ab

Please sign in to comment.