如何安装 cordova 插件的特定提交
How to install a specific commit of a cordova plugin
如何安装 cordova 插件的特定提交。我想安装 screen orientation 插件的这个分支,请参阅
https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/101/commits/99ea202e9b1121fc297ef3bbf0072efa1e6b0335。
但我无法安装。这可能吗?或者我应该调用哪个命令来安装这个分支?
我尝试了不同的方法,但没有成功。
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation:fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation@fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation#fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation:99ea202e9b1121fc297ef3bbf0072efa1e6b0335
我找不到正确的命令。
我知道一个解决方法,可能不是最好的解决方案,但我会解释一下:
复制提交代码:99ea202e9b1121fc297ef3bbf0072efa1e6b0335
进入主页,复制"Download ZIP"按钮的URL
https://github.com/gbenvenuti/cordova-plugin-screen-orientation/archive/master.zip
为您的提交代码更改"master"
粘贴到导航器中,然后下载。
替换你的插件文件夹,用于下载。
删除平台,然后重新添加。
安装插件时在插件名称末尾附加@<version number>
cordova plugin add cordova-plugin-splashscreen@2.0
您可以找到commit id 并为commit id 执行类似的操作
cordova plugin add git+https://github.com/foo/bar#baz
其中 foo 是组织,bar 是项目,baz 是提交哈希。
如何安装 cordova 插件的特定提交。我想安装 screen orientation 插件的这个分支,请参阅 https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/101/commits/99ea202e9b1121fc297ef3bbf0072efa1e6b0335。 但我无法安装。这可能吗?或者我应该调用哪个命令来安装这个分支?
我尝试了不同的方法,但没有成功。
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation:fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation@fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation#fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation:99ea202e9b1121fc297ef3bbf0072efa1e6b0335
我找不到正确的命令。
我知道一个解决方法,可能不是最好的解决方案,但我会解释一下:
复制提交代码:99ea202e9b1121fc297ef3bbf0072efa1e6b0335
进入主页,复制"Download ZIP"按钮的URL
https://github.com/gbenvenuti/cordova-plugin-screen-orientation/archive/master.zip
为您的提交代码更改"master"
粘贴到导航器中,然后下载。
替换你的插件文件夹,用于下载。
删除平台,然后重新添加。
安装插件时在插件名称末尾附加@<version number>
cordova plugin add cordova-plugin-splashscreen@2.0
您可以找到commit id 并为commit id 执行类似的操作
cordova plugin add git+https://github.com/foo/bar#baz
其中 foo 是组织,bar 是项目,baz 是提交哈希。