mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(deps): update c-toxcore to v0.2.12
This commit is contained in:
parent
6105af8279
commit
728621f627
|
@ -127,7 +127,7 @@ sudo checkinstall --install --pkgname libsodium --pkgversion 1.0.8 --nodoc -y
|
|||
sudo ldconfig
|
||||
cd ..
|
||||
# toxcore
|
||||
git clone --branch v0.2.11 --depth=1 https://github.com/toktok/c-toxcore.git toxcore
|
||||
git clone --branch v0.2.12 --depth=1 https://github.com/toktok/c-toxcore.git toxcore
|
||||
cd toxcore
|
||||
autoreconf -if
|
||||
CC="ccache $CC" CXX="ccache $CXX" ./configure
|
||||
|
|
|
@ -632,7 +632,7 @@ cd ..
|
|||
```bash
|
||||
git clone https://github.com/toktok/c-toxcore.git toxcore
|
||||
cd toxcore
|
||||
git checkout v0.2.11
|
||||
git checkout v0.2.12
|
||||
autoreconf -if
|
||||
./configure
|
||||
make -j$(nproc)
|
||||
|
|
|
@ -412,7 +412,7 @@ Provided that you have all required dependencies installed, you can simply run:
|
|||
```bash
|
||||
git clone https://github.com/toktok/c-toxcore.git toxcore
|
||||
cd toxcore
|
||||
git checkout v0.2.11
|
||||
git checkout v0.2.12
|
||||
cmake . -DBOOTSTRAP_DAEMON=OFF
|
||||
make -j$(nproc)
|
||||
sudo make install
|
||||
|
|
|
@ -48,7 +48,7 @@ readonly INSTALL_DIR=libs
|
|||
readonly BASE_DIR="${SCRIPT_DIR}/${INSTALL_DIR}"
|
||||
|
||||
# versions of libs to checkout
|
||||
readonly TOXCORE_VERSION="v0.2.11"
|
||||
readonly TOXCORE_VERSION="v0.2.12"
|
||||
readonly SQLCIPHER_VERSION="v4.3.0"
|
||||
|
||||
# directory names of cloned repositories
|
||||
|
|
|
@ -50,7 +50,7 @@ RUN apt-get update && \
|
|||
|
||||
RUN git clone https://github.com/toktok/c-toxcore.git /toxcore
|
||||
WORKDIR /toxcore
|
||||
RUN git checkout v0.2.11 && \
|
||||
RUN git checkout v0.2.12 && \
|
||||
cmake . && \
|
||||
cmake --build . && \
|
||||
make install && \
|
||||
|
|
|
@ -47,7 +47,7 @@ RUN apt-get update && \
|
|||
|
||||
RUN git clone https://github.com/toktok/c-toxcore.git /toxcore
|
||||
WORKDIR /toxcore
|
||||
RUN git checkout v0.2.11 && \
|
||||
RUN git checkout v0.2.12 && \
|
||||
cmake . && \
|
||||
cmake --build . && \
|
||||
make install && \
|
||||
|
|
|
@ -112,8 +112,8 @@
|
|||
{
|
||||
"type": "git",
|
||||
"url": "https://github.com/toktok/c-toxcore",
|
||||
"tag": "v0.2.11",
|
||||
"commit": "30b9369b01859e7c57687129ba2a481aa2bc48b8"
|
||||
"tag": "v0.2.12",
|
||||
"commit": "9be4dbb4335bf7d893c8d00566d3276ab6dedd14"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -145,7 +145,7 @@ install() {
|
|||
git pull
|
||||
else
|
||||
fcho "Cloning Toxcore git ... "
|
||||
git clone --branch v0.2.11 --depth=1 https://github.com/toktok/c-toxcore "$TOXCORE_DIR"
|
||||
git clone --branch v0.2.12 --depth=1 https://github.com/toktok/c-toxcore "$TOXCORE_DIR"
|
||||
fi
|
||||
# qTox
|
||||
if [[ $TRAVIS = true ]]
|
||||
|
|
|
@ -36,72 +36,72 @@ VIAddVersionKey "FileVersion" "${VERSION}"
|
|||
!macro AddItem Path
|
||||
FileWrite $UninstLog "${Path}$\r$\n"
|
||||
!macroend
|
||||
|
||||
|
||||
;File macro
|
||||
!macro File FileName
|
||||
IfFileExists "$OUTDIR\${FileName}" +2
|
||||
FileWrite $UninstLog "$OUTDIR\${FileName}$\r$\n"
|
||||
File "${FileName}"
|
||||
!macroend
|
||||
|
||||
|
||||
;CreateShortcut macro
|
||||
!macro CreateShortcut FilePath FilePointer Pamameters Icon IconIndex
|
||||
FileWrite $UninstLog "${FilePath}$\r$\n"
|
||||
CreateShortcut "${FilePath}" "${FilePointer}" "${Pamameters}" "${Icon}" "${IconIndex}"
|
||||
!macroend
|
||||
|
||||
|
||||
;Copy files macro
|
||||
!macro CopyFiles SourcePath DestPath
|
||||
IfFileExists "${DestPath}" +2
|
||||
FileWrite $UninstLog "${DestPath}$\r$\n"
|
||||
CopyFiles "${SourcePath}" "${DestPath}"
|
||||
!macroend
|
||||
|
||||
|
||||
;Rename macro
|
||||
!macro Rename SourcePath DestPath
|
||||
IfFileExists "${DestPath}" +2
|
||||
FileWrite $UninstLog "${DestPath}$\r$\n"
|
||||
Rename "${SourcePath}" "${DestPath}"
|
||||
!macroend
|
||||
|
||||
|
||||
;CreateDirectory macro
|
||||
!macro CreateDirectory Path
|
||||
CreateDirectory "${Path}"
|
||||
FileWrite $UninstLog "${Path}$\r$\n"
|
||||
!macroend
|
||||
|
||||
|
||||
;SetOutPath macro
|
||||
!macro SetOutPath Path
|
||||
SetOutPath "${Path}"
|
||||
FileWrite $UninstLog "${Path}$\r$\n"
|
||||
!macroend
|
||||
|
||||
|
||||
;WriteUninstaller macro
|
||||
!macro WriteUninstaller Path
|
||||
WriteUninstaller "${Path}"
|
||||
FileWrite $UninstLog "${Path}$\r$\n"
|
||||
!macroend
|
||||
|
||||
|
||||
;WriteIniStr macro
|
||||
!macro WriteIniStr IniFile SectionName EntryName NewValue
|
||||
IfFileExists "${IniFile}" +2
|
||||
FileWrite $UninstLog "${IniFile}$\r$\n"
|
||||
WriteIniStr "${IniFile}" "${SectionName}" "${EntryName}" "${NewValue}"
|
||||
!macroend
|
||||
|
||||
|
||||
;WriteRegStr macro
|
||||
!macro WriteRegStr RegRoot UnInstallPath Key Value
|
||||
FileWrite $UninstLog "${RegRoot} ${UnInstallPath}$\r$\n"
|
||||
WriteRegStr "${RegRoot}" "${UnInstallPath}" "${Key}" "${Value}"
|
||||
!macroend
|
||||
|
||||
|
||||
|
||||
|
||||
;WriteRegDWORD macro
|
||||
!macro WriteRegDWORD RegRoot UnInstallPath Key Value
|
||||
FileWrite $UninstLog "${RegRoot} ${UnInstallPath}$\r$\n"
|
||||
WriteRegDWORD "${RegRoot}" "${UnInstallPath}" "${Key}" "${Value}"
|
||||
!macroend
|
||||
|
||||
|
||||
;BackupFile macro
|
||||
!macro BackupFile FILE_DIR FILE BACKUP_TO
|
||||
IfFileExists "${BACKUP_TO}\*.*" +2
|
||||
|
@ -109,13 +109,13 @@ VIAddVersionKey "FileVersion" "${VERSION}"
|
|||
IfFileExists "${FILE_DIR}\${FILE}" 0 +2
|
||||
Rename "${FILE_DIR}\${FILE}" "${BACKUP_TO}\${FILE}"
|
||||
!macroend
|
||||
|
||||
|
||||
;RestoreFile macro
|
||||
!macro RestoreFile BUP_DIR FILE RESTORE_TO
|
||||
IfFileExists "${BUP_DIR}\${FILE}" 0 +2
|
||||
Rename "${BUP_DIR}\${FILE}" "${RESTORE_TO}\${FILE}"
|
||||
!macroend
|
||||
|
||||
|
||||
;BackupFiles macro
|
||||
!macro BackupFiles FILE_DIR FILE BACKUP_TO
|
||||
IfFileExists "${BACKUP_TO}\*.*" +2
|
||||
|
@ -128,7 +128,7 @@ VIAddVersionKey "FileVersion" "${VERSION}"
|
|||
SetOutPath "${FILE_DIR}"
|
||||
File "${FILE}" #After the Original file is backed up write the new file.
|
||||
!macroend
|
||||
|
||||
|
||||
;RestoreFiles macro
|
||||
!macro RestoreFiles BUP_FILE RESTORE_FILE
|
||||
IfFileExists "${BUP_FILE}" 0 +2
|
||||
|
@ -141,52 +141,52 @@ VIAddVersionKey "FileVersion" "${VERSION}"
|
|||
;Set the name of the uninstall log
|
||||
!define UninstLog "uninstall.log"
|
||||
Var UninstLog
|
||||
|
||||
|
||||
;Uninstall log file missing.
|
||||
LangString UninstLogMissing ${LANG_ENGLISH} "${UninstLog} not found!$\r$\nUninstallation cannot proceed!"
|
||||
|
||||
|
||||
;AddItem macro
|
||||
!define AddItem "!insertmacro AddItem"
|
||||
|
||||
|
||||
;BackupFile macro
|
||||
!define BackupFile "!insertmacro BackupFile"
|
||||
|
||||
!define BackupFile "!insertmacro BackupFile"
|
||||
|
||||
;BackupFiles macro
|
||||
!define BackupFiles "!insertmacro BackupFiles"
|
||||
|
||||
!define BackupFiles "!insertmacro BackupFiles"
|
||||
|
||||
;Copy files macro
|
||||
!define CopyFiles "!insertmacro CopyFiles"
|
||||
|
||||
|
||||
;CreateDirectory macro
|
||||
!define CreateDirectory "!insertmacro CreateDirectory"
|
||||
|
||||
|
||||
;CreateShortcut macro
|
||||
!define CreateShortcut "!insertmacro CreateShortcut"
|
||||
|
||||
|
||||
;File macro
|
||||
!define File "!insertmacro File"
|
||||
|
||||
|
||||
;Rename macro
|
||||
!define Rename "!insertmacro Rename"
|
||||
|
||||
|
||||
;RestoreFile macro
|
||||
!define RestoreFile "!insertmacro RestoreFile"
|
||||
|
||||
!define RestoreFile "!insertmacro RestoreFile"
|
||||
|
||||
;RestoreFiles macro
|
||||
!define RestoreFiles "!insertmacro RestoreFiles"
|
||||
|
||||
|
||||
;SetOutPath macro
|
||||
!define SetOutPath "!insertmacro SetOutPath"
|
||||
|
||||
|
||||
;WriteRegDWORD macro
|
||||
!define WriteRegDWORD "!insertmacro WriteRegDWORD"
|
||||
|
||||
!define WriteRegDWORD "!insertmacro WriteRegDWORD"
|
||||
|
||||
;WriteRegStr macro
|
||||
!define WriteRegStr "!insertmacro WriteRegStr"
|
||||
|
||||
|
||||
;WriteUninstaller macro
|
||||
!define WriteUninstaller "!insertmacro WriteUninstaller"
|
||||
|
||||
|
||||
Section -openlogfile
|
||||
CreateDirectory "$INSTDIR"
|
||||
IfFileExists "$INSTDIR\${UninstLog}" +3
|
||||
|
@ -243,7 +243,7 @@ FunctionEnd
|
|||
!insertmacro MUI_UNPAGE_FINISH
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
|
||||
#################
|
||||
#INSTALL
|
||||
#################
|
||||
|
@ -252,16 +252,16 @@ Section "Install"
|
|||
# Install files
|
||||
${SetOutPath} "$INSTDIR"
|
||||
${WriteUninstaller} "uninstall.exe"
|
||||
|
||||
|
||||
${CreateDirectory} "$INSTDIR\bin"
|
||||
${SetOutPath} "$INSTDIR\bin"
|
||||
${File} "qtox\*.*"
|
||||
|
||||
|
||||
${CreateDirectory} "$INSTDIR\bin\imageformats"
|
||||
${SetOutPath} "$INSTDIR\bin\imageformats"
|
||||
File /nonfatal "qtox\imageformats\*.*"
|
||||
${SetOutPath} "$INSTDIR\bin"
|
||||
|
||||
|
||||
${CreateDirectory} "$INSTDIR\bin\platforms"
|
||||
${SetOutPath} "$INSTDIR\bin\platforms"
|
||||
File /nonfatal "qtox\platforms\*.*"
|
||||
|
@ -304,28 +304,28 @@ Section Uninstall
|
|||
;If there's no uninstall log, we'll try anyway to clean what we can
|
||||
IfFileExists "$INSTDIR\${UninstLog}" +3
|
||||
Goto noLog
|
||||
|
||||
|
||||
Push $R0
|
||||
Push $R1
|
||||
Push $R2
|
||||
SetFileAttributes "$INSTDIR\${UninstLog}" NORMAL
|
||||
FileOpen $UninstLog "$INSTDIR\${UninstLog}" r
|
||||
StrCpy $R1 -1
|
||||
|
||||
|
||||
GetLineCount:
|
||||
ClearErrors
|
||||
FileRead $UninstLog $R0
|
||||
IntOp $R1 $R1 + 1
|
||||
StrCpy $R0 $R0 -2
|
||||
Push $R0
|
||||
Push $R0
|
||||
IfErrors 0 GetLineCount
|
||||
|
||||
|
||||
Pop $R0
|
||||
|
||||
|
||||
LoopRead:
|
||||
StrCmp $R1 0 LoopDone
|
||||
Pop $R0
|
||||
|
||||
|
||||
IfFileExists "$R0\*.*" 0 +3
|
||||
RMDir $R0 #is dir
|
||||
Goto +9
|
||||
|
@ -337,7 +337,7 @@ Section Uninstall
|
|||
Goto +3
|
||||
StrCmp $R0 "${REG_ROOT} ${UNINSTALL_PATH}" 0 +2
|
||||
DeleteRegKey ${REG_ROOT} "${UNINSTALL_PATH}" #is Reg Element
|
||||
|
||||
|
||||
IntOp $R1 $R1 - 1
|
||||
Goto LoopRead
|
||||
LoopDone:
|
||||
|
@ -350,10 +350,10 @@ Section Uninstall
|
|||
Pop $R2
|
||||
Pop $R1
|
||||
Pop $R0
|
||||
|
||||
|
||||
;Remove start menu entries
|
||||
RMDir /r /REBOOTOK "$SMPROGRAMS\qTox"
|
||||
|
||||
|
||||
;Remove registry keys
|
||||
SetRegView 64
|
||||
DeleteRegKey ${REG_ROOT} "${REG_APP_PATH}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user