使用python从服务器提取构建然后解压缩后,我无法启动应用程序。我收到错误消息“无法打开应用程序“”。Iv在内容中的可执行文件上尝试使用chmod + x,然后应用程序启动到黑屏。相同的代码似乎在Windows上对我有用。有任何想法吗?
在这里输入我的代码
function colorPicker(x, y, fn) {
const canvas = document.querySelector('canvas');
const svg = document.querySelector('svg');
const ctx = canvas.getContext('2d');
const img = new Image();
const xml = new XMLSerializer().serializeToString(svg);
const svg64 = btoa(xml);
const b64Start = 'data:image/svg+xml;base64,';
const image64 = b64Start + svg64;
img.src = image64;
img.onload = () => {
ctx.drawImage(img, 0, 0);
const d = ctx.getImageData(x, y, 1, 1).data;
const color = `rgba(${d[0]}, ${d[1]}, ${d[2]}, d[3]})`;
fn(color);
}
}
const out = document.getElementById('out');
colorPicker(100, 100, color => out.innerHTML = color );
答案 0 :(得分:0)
看来问题出在符号链接断开。
普通提取物
---
title: "Pilotanlage"
author: ""
date: ""
output: html_document
---
<style>
.main-container {
max-width: 1800px;
margin-left: auto;
margin-right: auto;
}
h1.title {
font-size: 38px;
color: black;
text-align: center;
}
</style>
```{r global_options, include=FALSE, message=FALSE, warning=FALSE}
knitr::opts_chunk$set(fig.width=3, fig.height=3, echo = FALSE, warning=FALSE, message=FALSE)
```
<div class="col-md-4">
```{r}
source("N:/H811/FlowRes/Pilotanlage_Petronell/R/dygraph/dygraph.R")
a
b
c
```
</div>
<div class="col-md-4">
```{r}
source("N:/H811/FlowRes/Pilotanlage_Petronell/R/dygraph/dygraph.R")
d
e
f
```
</div>
<div class="col-md-4">
```{r}
source("R/dygraph/dygraph.R")
g
h
j
```
</div>
Python提取
-rw-r--r-- 1 daniel staff 29B 22 Aug 17:36 QtConcurrent
-rw-r--r-- 1 daniel staff 26B 22 Aug 17:36 Resources
drwxr-xr-x 4 daniel staff 136B 22 Aug 17:36 Versions
使用标准OSX工具提取时按预期工作
lrwxr-xr-x 1 daniel staff 29B 22 Aug 17:37 QtConcurrent -> Versions/Current/QtConcurrent
lrwxr-xr-x 1 daniel staff 26B 22 Aug 17:37 Resources -> Versions/Current/Resources
drwxr-xr-x 4 daniel staff 136B 22 Aug 17:37 Versions