-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
949b3d7
commit b2e3dfa
Showing
20 changed files
with
151 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Build & Test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build | ||
id: snapcraft | ||
uses: snapcore/action-build@v1 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: snap | ||
path: ${{ steps.snapcraft.outputs.snap }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
node_modules | ||
dist | ||
*.snap | ||
*.user | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "subprojects/choc"] | ||
path = subprojects/choc | ||
url = https://github.com/cross-platform/choc.git | ||
branch = fork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"C_Cpp.default.cppStandard": "c++17", | ||
"lldb.showDisassembly": "never" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run", | ||
"preLaunchTask": "Build", | ||
"program": "${workspaceFolder}/build/icloud-for-linux", | ||
"args": ["notes", "Notes"], | ||
"cwd": "${workspaceFolder}", | ||
"request": "launch", | ||
"type": "cppdbg", | ||
"osx": { | ||
"type": "lldb" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"C_Cpp.default.cppStandard": "c++17", | ||
"lldb.showDisassembly": "never" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build", | ||
"type": "shell", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"command": [ | ||
"cp .vscode/_settings.json .vscode/settings.json &&", | ||
"mkdir -p build &&", | ||
"cd build &&", | ||
"cmake -DCMAKE_BUILD_TYPE=Debug .. &&", | ||
"cmake --build . -j8 --config Debug" | ||
], | ||
"problemMatcher": { | ||
"base": "$gcc", | ||
"fileLocation": [ | ||
"relative", | ||
"${workspaceFolder}/build/" | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
project(icloud-for-linux) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
include_directories(subprojects/choc) | ||
|
||
add_executable( | ||
${PROJECT_NAME} | ||
src/main.cpp | ||
) | ||
|
||
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules (gtk3 REQUIRED gtk+-3.0 IMPORTED_TARGET) | ||
pkg_check_modules (webkit2 REQUIRED webkit2gtk-4.0 IMPORTED_TARGET) | ||
target_link_libraries (${PROJECT_NAME} PUBLIC pthread PkgConfig::gtk3 PkgConfig::webkit2) | ||
else() | ||
target_link_libraries(${PROJECT_NAME} "-framework WebKit") | ||
endif() | ||
|
||
install(TARGETS ${PROJECT_NAME} DESTINATION bin) |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Version=0.11 | ||
Name=iCloud Find | ||
GenericName=iCloud Find | ||
Comment=iCloud Find | ||
Type=Application | ||
Categories=Office | ||
Icon=${SNAP}/meta/gui/find.png | ||
Exec=icloud-for-linux.find | ||
StartupWMClass=icloud-for-linux.find |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <gui/choc_WebView.h> | ||
#include <gui/choc_DesktopWindow.h> | ||
#include <gui/choc_MessageLoop.h> | ||
|
||
int main(int, char **argv) | ||
{ | ||
choc::ui::DesktopWindow appWin(choc::ui::Bounds{0, 0, 0, 0}); | ||
appWin.centreWithSize(1000, 600); | ||
appWin.setWindowTitle( "iCloud " + std::string(argv[2]) ); | ||
appWin.windowClosed = []() | ||
{ choc::messageloop::stop(); }; | ||
|
||
choc::ui::WebView webView; | ||
webView.navigate("https://www.icloud.com/" + std::string(argv[1])); | ||
|
||
appWin.setContent(webView.getViewHandle()); | ||
appWin.toFront(); | ||
|
||
choc::messageloop::run(); | ||
return 0; | ||
} |