Comments (2)
Something along the lines of
// excluder project main.go
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"strings"
)
func main() {
excludedLibs := getExcludedLibs()
fmt.Println(excludedLibs)
}
func getExcludedLibs() []string {
var excludeListLibs []string
url := "https://raw.githubusercontent.com/AppImage/pkg2appimage/master/excludelist"
var client http.Client
resp, err := client.Get(url)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
var bodyString string
if resp.StatusCode == http.StatusOK {
bodyBytes, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Println(err)
return (excludeListLibs)
}
bodyString = string(bodyBytes)
} else {
fmt.Println("Error getting excludelist")
return (excludeListLibs)
}
lines := strings.Split(bodyString, "\n")
for _, line := range lines {
if strings.HasPrefix(line, "#") || line == "" {
continue
}
line = strings.Split(line, "#")[0]
excludeListLibs = append(excludeListLibs, strings.TrimSpace(line))
}
return (excludeListLibs)
}
from go-appimage.
Implemented
from go-appimage.
Related Issues (20)
- Continuous build has versioned filename and thus can't be downloaded HOT 2
- Cannot see volumes come and go HOT 4
- appimagetool -s deploy breaks things like qApp->applicationDirPath()
- appimaged fails to parse entire directory HOT 9
- [Feature request] "Simple" mode, please? And / or some real-life usage examples in the docs?
- AppDir could not be identified: ./usr/bin does not exist HOT 6
- Guessed qt_prfxpath wrong (Qt 5 gets deployed instead of Qt 6) HOT 12
- Properly handle SDL2 HOT 4
- AppStream validator gives wrong results and can't be disabled HOT 19
- 'Invalid desktop file' with exit status 1 on Debian HOT 3
- provide persistent releases HOT 10
- [Question] What to say to app dev when "is not a proper AppImage", "too short" ? HOT 18
- Howto for users is missing. HOT 3
- Appimages won't work with fuse3 unless fusermount is symlinked to fusermount3 HOT 4
- How to launch without FUSERMOUNT_PROG variable? HOT 5
- appimagetool don't bundle `immodules.cache` neither set `GTK_IM_MODULE_FILE` HOT 1
- appimagetool don't configure `loaders.cache` HOT 5
- Crash when application has .svg instead of .png icon HOT 4
- Question/Feature Request: Is the "Applications" directory required? HOT 2
- Stack overflow gathering libs HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-appimage.