-
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from 5ec1cff/master
- Loading branch information
Showing
55 changed files
with
3,805 additions
and
1,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,25 @@ | ||
import json | ||
import os | ||
import urllib.parse | ||
|
||
url = f'https://api.telegram.org/bot{os.environ["BOT_TOKEN"]}' | ||
url += f'/sendMediaGroup?chat_id={urllib.parse.quote(os.environ["CHANNEL_ID"])}&media=' | ||
|
||
# https://core.telegram.org/bots/api#markdownv2-style | ||
msg = os.environ["COMMIT_MESSAGE"] | ||
for c in ['\\', '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']: | ||
msg = msg.replace(c, f'\\{c}') | ||
commit_url = os.environ["COMMIT_URL"] | ||
commit_id = os.environ["COMMIT_ID"][:7] | ||
|
||
caption = f"[{commit_id}]({commit_url})\n{msg}"[:1024] | ||
|
||
data = json.dumps([ | ||
{"type": "document", "media": "attach://Release"}, | ||
{"type": "document", "media":"attach://Debug"}, | ||
{"type": "document", "media": "attach://ReleaseSymbol"}, | ||
{"type": "document", "media": "attach://DebugSymbol","caption": caption,"parse_mode":"MarkdownV2"} | ||
]) | ||
|
||
url += urllib.parse.quote(data) | ||
print(url) |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[submodule "loader/src/external/lsplt"] | ||
path = loader/src/external/lsplt | ||
url = https://github.com/LSPosed/lsplt | ||
[submodule "loader/src/external/parallel-hashmap"] | ||
path = loader/src/external/parallel-hashmap | ||
url = https://github.com/greg7mdp/parallel-hashmap |
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
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
cmake_minimum_required(VERSION 3.22.1) | ||
project("loader") | ||
|
||
find_package(cxx REQUIRED CONFIG) | ||
|
||
add_definitions(-DZKSU_VERSION=\"${ZKSU_VERSION}\") | ||
|
||
aux_source_directory(common COMMON_SRC_LIST) | ||
add_library(common STATIC ${COMMON_SRC_LIST}) | ||
target_include_directories(common PRIVATE include) | ||
target_link_libraries(common cxx::cxx log) | ||
|
||
aux_source_directory(injector INJECTOR_SRC_LIST) | ||
add_library(zygisk SHARED ${INJECTOR_SRC_LIST}) | ||
target_include_directories(zygisk PRIVATE include) | ||
target_link_libraries(zygisk cxx::cxx log common lsplt_static phmap) | ||
|
||
aux_source_directory(ptracer PTRACER_SRC_LIST) | ||
add_executable(libzygisk_ptrace.so ${PTRACER_SRC_LIST}) | ||
target_include_directories(libzygisk_ptrace.so PRIVATE include) | ||
target_link_libraries(libzygisk_ptrace.so cxx::cxx log common) | ||
|
||
add_subdirectory(external) |
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
File renamed without changes.
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 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,8 @@ | ||
project(external) | ||
|
||
OPTION(LSPLT_BUILD_SHARED OFF) | ||
add_subdirectory(lsplt/lsplt/src/main/jni) | ||
|
||
add_library(phmap INTERFACE) | ||
target_include_directories(phmap INTERFACE parallel-hashmap) | ||
target_compile_options(phmap INTERFACE -Wno-unused-value) |
Submodule parallel-hashmap
deleted from
55725d
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
Oops, something went wrong.